mat
function mat(x:NumericLike, n:Integer) -> NumericMatrixLike
Matrixize.
- x Argument.
- n Number of columns into which to unstack. Must be a factor of the
size of
x.
Returns If x is a scalar then returns a matrix with a single element. If
x is a vector then returns a matrix formed by splitting it into n
equal contiguous subvectors and unstacking them to form the columns of a
matrix. If x is a matrix then reshapes it to the given number of columns
as if calling mat(vec(x), n).
See also vec