get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix(算子)
名称
get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix — 获取矩阵的大小。
签名
def get_size_matrix(matrix_id: HHandle) -> Tuple[int, int]
描述
算子 get_size_matrixget_size_matrixGetSizeMatrixGetSizeMatrixGetSizeMatrixget_size_matrix returns the number of rows
RowsRowsRowsRowsrowsrows and columns ColumnsColumnsColumnsColumnscolumnscolumns of the input
Matrix. The input Matrix is defined by the
matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (输入控制) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
输入矩阵的矩阵句柄。
RowsRowsRowsRowsrowsrows (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of rows of the matrix.
ColumnsColumnsColumnsColumnscolumnscolumns (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of columns of the matrix.
结果
如果参数有效,算子 get_size_matrixget_size_matrixGetSizeMatrixGetSizeMatrixGetSizeMatrixget_size_matrix 返回值 2 (H_MSG_TRUE)。如有必要,则抛出异常。
可能的前趋
create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix
可能的后继
clear_matrixclear_matrixClearMatrixClearMatrixClearMatrixclear_matrix
模块
基础