Skip to content

abs_matrixAbsMatrixAbsMatrixabs_matrixT_abs_matrix🔗

説明🔗

abs_matrixAbsMatrixAbsMatrixabs_matrixT_abs_matrix — 行列の要素の絶対値を計算する。

書式🔗

abs_matrix( matrix MatrixID, out matrix MatrixAbsID )void AbsMatrix( const HTuple& MatrixID, HTuple* MatrixAbsID )static void HOperatorSet.AbsMatrix( HTuple matrixID, out HTuple matrixAbsID )def abs_matrix( matrix_id: HHandle ) -> HHandle

Herror T_abs_matrix( const Htuple MatrixID, Htuple* MatrixAbsID )

HMatrix HMatrix::AbsMatrix( ) const

HMatrix HMatrix.AbsMatrix( )

説明🔗

オペレーター abs_matrixAbsMatrix は、行列ハンドル MatrixIDmatrixIDmatrix_id で提供される入力行列 Matrix の全要素の絶対値を計算 します。その結果、新しい行列 MatrixAbs が生成されます。 オペレーターは行列 MatrixAbs の行列ハンドル MatrixAbsIDmatrixAbsIDmatrix_abs_id を返します。行列の要素には、オペレーター get_full_matrixGetFullMatrix などを使用してアクセスできます。結果の計算 式は以下の通りです。

\[\begin{eqnarray*} \texttt{MatrixAbs}_{ij} \quad = \quad |\,\texttt{Matrix}_{ij}\,|. \end{eqnarray*}\]

例:

\[\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{MatrixAbs} = \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] \end{eqnarray*}\]

実行情報🔗

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

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

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

パラメーター🔗

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

入力行列の行列ハンドル

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

入力行列の絶対値をもつ行列ハンドル

結果🔗

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

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

組み合わせ

前処理の候補

create_matrixCreateMatrix

後処理の候補

get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix

他の選択候補

abs_matrix_modAbsMatrixMod

モジュール🔗

Foundation