set_sub_matrixSetSubMatrixSetSubMatrixset_sub_matrixT_set_sub_matrix
説明
set_sub_matrixSetSubMatrixSetSubMatrixset_sub_matrixT_set_sub_matrix — 行列の小行列を設定する。
書式
set_sub_matrix( matrix MatrixID, matrix MatrixSubID, integer Row, integer Column )void SetSubMatrix( const HTuple& MatrixID, const HTuple& MatrixSubID, const HTuple& Row, const HTuple& Column )static void HOperatorSet.SetSubMatrix( HTuple matrixID, HTuple matrixSubID, HTuple row, HTuple column )def set_sub_matrix( matrix_id: HHandle, matrix_sub_id: HHandle, row: int, column: int ) -> None
Herror T_set_sub_matrix( const Htuple MatrixID, const Htuple MatrixSubID, const Htuple Row, const Htuple Column )
void HMatrix::SetSubMatrix( const HMatrix& MatrixSubID, Hlong Row, Hlong Column ) const
void HMatrix.SetSubMatrix( HMatrix matrixSubID, int row, int column )
説明
オペレーター set_sub_matrixSetSubMatrix は行列
Matrix の一部を行列 MatrixSub で上書きします。
入力行列は、行列ハンドル MatrixIDmatrixIDmatrix_id と
MatrixSubIDmatrixSubIDmatrix_sub_id により定義されます。パラメーター
Rowrowrow と Columncolumncolumn が行列 Matrix の小行列
MatrixSub の左上隅の位置を指定します。
例:
Rowrowrow = 00,
Columncolumncolumn = 11
\[\begin{eqnarray*}
\texttt{Matrix} =
\left[ \begin{array}{rrrr}
3.0 & 0.0 & 9.0 & 1.0 \\
-5.0 & 3.0 & 1.0 & 6.0 \\
-9.0 & 0.0 & 1.0 & -1.0
\end{array} \right]
\qquad
\texttt{MatrixSub} =
\left[ \begin{array}{rr}
1.0 & -2.0 \\
7.0 & 2.0 \\
-4.0 & 1.0
\end{array} \right]
\end{eqnarray*}\]
\[\begin{eqnarray*}
\to \quad \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*}\]
注意
「0 \(\le\) Rowrowrow \(<\) 行方向の行列 Matrix
のサイズ」、「Rowrowrow \(+\) 行方向の行列 MatrixSub の
サイズ \(\le\) 行方向の行列 Matrix のサイズ」、「
0 \(\le\) Columncolumncolumn \(<\) 列方向の行列 Matrix
のサイズ」、「Columncolumncolumn \(+\) 列方向の行列
MatrixSub のサイズ \(\le\) 列方向の行列
Matrix のサイズ」の各条件を満たす必要があります。
実行情報
実行情報
このオペレータは以下の入力パラメータの状態を変更します :
このパラメータの値は外部同期なしには複数スレッド間で共有されません。
パラメーター
MatrixIDmatrixIDmatrix_id (input_control, 状態が変更されました) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力行列の行列ハンドル
MatrixSubIDmatrixSubIDmatrix_sub_id (input_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力小行列の行列ハンドル
Rowrowrow (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (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 → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (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
結果
パラメーターが有効ならば、オペレーター set_sub_matrixSetSubMatrix は
値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
create_matrixCreateMatrix
後処理の候補
get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix
関連項目
get_sub_matrixGetSubMatrix
モジュール
Foundation