get_sub_matrix — 获取矩阵的子矩阵。
get_sub_matrix( : : MatrixID, Row, Column, RowsSub, ColumnsSub : MatrixSubID)
算子 get_sub_matrix generates a new matrix
MatrixSub and copies to this matrix a part of the input
Matrix defined by the matrix handle MatrixID.
The part of the Matrix is determined by the upper left
corner (Row,Column) and the sub-matrix dimensions
(RowsSub, ColumnsSub). The operator returns the
matrix handle MatrixSubID of the matrix
MatrixSub.可通过算子
get_full_matrix 等方式访问该矩阵的元素。
示例:
Row = 0,
Column = 1,
RowsSub = 3,
ColumnsSub = 2
The conditions 0 Row < size of
Matrix in row direction, Row + RowsSub
size of Matrix in the row direction, 0
Column < size of Matrix in the
column direction, and Column + ColumnsSub
size of matrix Matrix in the column
direction must be satisfied.
MatrixID (输入控制) matrix → (handle)
输入矩阵的矩阵句柄。
Row (输入控制) integer → (integer)
Upper row position of the sub-matrix in the input matrix.
默认值: 0
建议值: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
Row >= 0
Column (输入控制) integer → (integer)
Left column position of the sub-matrix in the input matrix.
默认值: 0
建议值: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
Column >= 0
RowsSub (输入控制) integer → (integer)
Number of rows of the sub-matrix.
默认值: 1
建议值: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
RowsSub >= 1
ColumnsSub (输入控制) integer → (integer)
Number of columns of the sub-matrix.
默认值: 1
建议值: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
限制:
ColumnsSub >= 1
MatrixSubID (输出控制) matrix → (handle)
Matrix handle of the sub-matrix.
如果参数有效,算子 get_sub_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
get_full_matrix,
get_value_matrix
基础