Skip to content

get_value_matrixGetValueMatrixGetValueMatrixget_value_matrixT_get_value_matrix🔗

説明🔗

get_value_matrixGetValueMatrixGetValueMatrixget_value_matrixT_get_value_matrix — 行列の要素を1つ以上取得する。

書式🔗

get_value_matrix( matrix MatrixID, integer Row, integer Column, out real Value )void GetValueMatrix( const HTuple& MatrixID, const HTuple& Row, const HTuple& Column, HTuple* Value )static void HOperatorSet.GetValueMatrix( HTuple matrixID, HTuple row, HTuple column, out HTuple value )def get_value_matrix( matrix_id: HHandle, row: MaybeSequence[int], column: MaybeSequence[int] ) -> Sequence[float]

def get_value_matrix_s( matrix_id: HHandle, row: MaybeSequence[int], column: MaybeSequence[int] ) -> floatHerror T_get_value_matrix( const Htuple MatrixID, const Htuple Row, const Htuple Column, Htuple* Value )

HTuple HMatrix::GetValueMatrix( const HTuple& Row, const HTuple& Column ) const

double HMatrix::GetValueMatrix( Hlong Row, Hlong Column ) const

HTuple HMatrix.GetValueMatrix( HTuple row, HTuple column )

double HMatrix.GetValueMatrix( int row, int column )

説明🔗

オペレーター get_value_matrixGetValueMatrix は浮動小数点の tuple として 行列 Matrix の要素値を1つ以上返します。Matrix は、行列ハンドル MatrixIDmatrixIDmatrix_id によって指定されます。行列 Matrix の行座標の要素は tuple Rowrowrow、tuple Columncolumncolumn で列座標を指定します。

例:

Rowrowrow = [0, 2, 1][0, 2, 1], Columncolumncolumn = [1, 0, 3][1, 0, 3]

\[\begin{eqnarray*} \texttt{Matrix} = \left[ \begin{array}{rrrr} 3.0 & 1.0 & -2.0 & 1.0 \\ -5.0 & 7.0 & 2.0 & 6.0 \\ -9.0 & -4.0 & 1.0 & -1.0 \end{array} \right] \end{eqnarray*}\]
\[\begin{eqnarray*} \to \qquad \textrm{Value} = [1.0,-9.0,6.0] \end{eqnarray*}\]

実行情報🔗

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

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

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

パラメーター🔗

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

入力行列の行列ハンドル

Rowrowrow (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

返される行列要素の行数

初期値: 00
推奨値: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 1000, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
制限: Row >= 0

Columncolumncolumn (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

返される行列要素の列数

初期値: 00
推奨値: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 1000, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100
制限: Column >= 0

Valuevaluevalue (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

指定した行列要素の値

結果🔗

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

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

組み合わせ

前処理の候補

create_matrixCreateMatrix

後処理の候補

clear_matrixClearMatrix

関連項目

set_value_matrixSetValueMatrix

モジュール🔗

Foundation