get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix (算子名称)
名称
get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix — Get the size of a 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 (input_control) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Matrix handle of the input matrix.
RowsRowsRowsRowsrowsrows (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of rows of the matrix.
ColumnsColumnsColumnsColumnscolumnscolumns (output_control) 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
模块
Foundation