Skip to content

sqrt_matrixSqrtMatrixSqrtMatrixsqrt_matrixT_sqrt_matrix🔗

説明🔗

sqrt_matrixSqrtMatrixSqrtMatrixsqrt_matrixT_sqrt_matrix — 行列要素の平方根の値を計算する。

書式🔗

sqrt_matrix( matrix MatrixID, out matrix MatrixSqrtID )void SqrtMatrix( const HTuple& MatrixID, HTuple* MatrixSqrtID )static void HOperatorSet.SqrtMatrix( HTuple matrixID, out HTuple matrixSqrtID )def sqrt_matrix( matrix_id: HHandle ) -> HHandle

Herror T_sqrt_matrix( const Htuple MatrixID, Htuple* MatrixSqrtID )

HMatrix HMatrix::SqrtMatrix( ) const

HMatrix HMatrix.SqrtMatrix( )

説明🔗

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

\[\begin{eqnarray*} \texttt{MatrixSqrt}_{ij} \quad = \quad \sqrt{\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{MatrixSqrt} = \left[ \begin{array}{rrr} 1.7321 & 1.0000 & 1.4142 \\ 2.2361 & 2.6458 & 1.4142 \\ 3.0000 & 2.0000 & 1.0000 \end{array} \right] \end{eqnarray*}\]

実行情報🔗

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

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

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

パラメーター🔗

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

入力行列の行列ハンドル

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

入力行列の平方根の値を持つ行列ハンドル

結果🔗

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

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

組み合わせ

前処理の候補

create_matrixCreateMatrix

後処理の候補

get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix

他の選択候補

sqrt_matrix_modSqrtMatrixMod

関連項目

pow_scalar_element_matrixPowScalarElementMatrix, pow_scalar_element_matrix_modPowScalarElementMatrixMod

モジュール🔗

Foundation