matrix

Syntax

m = matrix(a<,i>)

Create a matrix. Either the matrix can be filled from an array, vector, or tensor, or an empty matrix of a specified size can be created.

Returns:

m - matrix pointer

Arguments:

a - Array, vector, tensor, or integer. An integer corresponds to the number of rows, and all entries will be set to 0.

i - Optional number of columns that can only be given if a is also an integer. All entries will be set to 0.