Skip to content

transpose_matrixTransposeMatrixTransposeMatrixtranspose_matrixT_transpose_matrix🔗

説明🔗

transpose_matrixTransposeMatrixTransposeMatrixtranspose_matrixT_transpose_matrix — 行列を転置する。

書式🔗

transpose_matrix( matrix MatrixID, out matrix MatrixTransposedID )void TransposeMatrix( const HTuple& MatrixID, HTuple* MatrixTransposedID )static void HOperatorSet.TransposeMatrix( HTuple matrixID, out HTuple matrixTransposedID )def transpose_matrix( matrix_id: HHandle ) -> HHandle

Herror T_transpose_matrix( const Htuple MatrixID, Htuple* MatrixTransposedID )

HMatrix HMatrix::TransposeMatrix( ) const

HMatrix HMatrix.TransposeMatrix( )

説明🔗

オペレーター transpose_matrixTransposeMatrix は入力行列 Matrix の転置を返します。入力行列は、行列ハンドル MatrixIDmatrixIDmatrix_id で定 義されます。新しい行列 MatrixTransposed が結果とともに生 成され、この行列の行列ハンドル MatrixTransposedIDmatrixTransposedIDmatrix_transposed_id が返さ れます。行列の要素には、オペレーター get_full_matrixGetFullMatrix など を使用してアクセスできます。

例:

\[\begin{eqnarray*} \texttt{Matrix} = \left[ \begin{array}{rrr} 3.0 & 1.0 & -2.0 \\ -5.0 & 7.0 & 2.0 \\ -9.0 & -4.0 & 1.0 \end{array} \right] \qquad \to \qquad \texttt{MatrixTransposed} = \left[ \begin{array}{rrr} 3.0 & -5.0 & -9.0 \\ 1.0 & 7.0 & -4.0 \\ -2.0 & 2.0 & 1.0 \end{array} \right] \end{eqnarray*}\]

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

MatrixIDmatrixIDmatrix_id (input_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)

入力行列の行列ハンドル

MatrixTransposedIDmatrixTransposedIDmatrix_transposed_id (output_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)

入力行列の転置を持つ行列ハンドル

結果🔗

パラメーターが有効ならば、オペレーター transpose_matrixTransposeMatrix は 値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_matrixCreateMatrix

後処理の候補

get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix

他の選択候補

transpose_matrix_modTransposeMatrixMod

関連項目

invert_matrixInvertMatrix, invert_matrix_modInvertMatrixMod

参考文献🔗

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.

モジュール🔗

Foundation