transpose_matrixT_transpose_matrixTransposeMatrixTransposeMatrixtranspose_matrix (算子)

名称

transpose_matrixT_transpose_matrixTransposeMatrixTransposeMatrixtranspose_matrix — 转置矩阵。

签名

transpose_matrix( : : MatrixID : MatrixTransposedID)

Herror T_transpose_matrix(const Htuple MatrixID, Htuple* MatrixTransposedID)

void TransposeMatrix(const HTuple& MatrixID, HTuple* MatrixTransposedID)

HMatrix HMatrix::TransposeMatrix() const

static void HOperatorSet.TransposeMatrix(HTuple matrixID, out HTuple matrixTransposedID)

HMatrix HMatrix.TransposeMatrix()

def transpose_matrix(matrix_id: HHandle) -> HHandle

描述

算子 transpose_matrixtranspose_matrixTransposeMatrixTransposeMatrixTransposeMatrixtranspose_matrix returns the transpose of the input Matrix. The input matrix is defined by the matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id. A new matrix MatrixTransposed is generated with the result and the matrix handle MatrixTransposedIDMatrixTransposedIDMatrixTransposedIDMatrixTransposedIDmatrixTransposedIDmatrix_transposed_id of this matrix is returned.可通过算子 get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix 等方式访问该矩阵的元素。

示例:

执行信息

参数

MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (输入控制)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

输入矩阵的矩阵句柄。

MatrixTransposedIDMatrixTransposedIDMatrixTransposedIDMatrixTransposedIDmatrixTransposedIDmatrix_transposed_id (输出控制)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix handle with the transpose of the input matrix.

结果

如果参数有效,算子 transpose_matrixtranspose_matrixTransposeMatrixTransposeMatrixTransposeMatrixtranspose_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix

可能的后继

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix

替代

transpose_matrix_modtranspose_matrix_modTransposeMatrixModTransposeMatrixModTransposeMatrixModtranspose_matrix_mod

另见

invert_matrixinvert_matrixInvertMatrixInvertMatrixInvertMatrixinvert_matrix, invert_matrix_modinvert_matrix_modInvertMatrixModInvertMatrixModInvertMatrixModinvert_matrix_mod

参考文献

David Poole: “Linear Algebra: A Modern Introduction”; Thomson; Belmont; 2006.
Gene H. Golub, Charles F. van Loan: “Matrix Computations”; The Johns Hopkins University Press; Baltimore and London; 1996.

模块

基础