|
4.11.3 matrix type cast
Syntax:
matrix ( expression )
matrix ( expression, int_n, int_m )
Type:
- matrix
Purpose:
- Converts expression to a matrix, where expression must be of type int,
intmat, intvec, number, poly, ideal, vector, module, or matrix. If
int_n and int_m are supplied, then they specify the dimension of the
matrix. Otherwise, the size (resp. dimensions) of the matrix
is determined by the size (resp. dimensions) of the
expression.
Example:
See
Type conversion and casting;
intmat type cast;
matrix.
|