get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix(算子)

名称

get_size_matrixT_get_size_matrixGetSizeMatrixGetSizeMatrixget_size_matrix — 获取矩阵的大小。

签名

get_size_matrix( : : MatrixID : Rows, Columns)

Herror T_get_size_matrix(const Htuple MatrixID, Htuple* Rows, Htuple* Columns)

void GetSizeMatrix(const HTuple& MatrixID, HTuple* Rows, HTuple* Columns)

void HMatrix::GetSizeMatrix(Hlong* Rows, Hlong* Columns) const

static void HOperatorSet.GetSizeMatrix(HTuple matrixID, out HTuple rows, out HTuple columns)

void HMatrix.GetSizeMatrix(out int rows, out int columns)

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

模块

基础