|
4.11.1 matrix declarations
- Syntax:
matrix name[ rows][ cols] = list_of_poly_expressions ;
matrix name = matrix_expression ;
- Purpose:
- defines a matrix (of polynomials).
The given poly_list fills up the matrix beginning with the first row
from the left to the right, then the second row and so on.
If the poly_list contains less than rows*cols elements,
the matrix is filled up with zeros; if it contains more
elements, then only the first rows*cols elements are used.
If the right-hand side is a matrix expression
the matrix on the left-hand side gets the same size as the right-hand side,
otherwise the size is determined by the left-hand side.
If the size is omitted a 1x1 matrix is created.
- Default:
- 0 (1 x 1 matrix)
- Example:
|