div_element_matrixDivElementMatrixDivElementMatrixdiv_element_matrixT_div_element_matrix
説明
div_element_matrixDivElementMatrixDivElementMatrixdiv_element_matrixT_div_element_matrix — 行列の要素ごとに除算する。
書式
div_element_matrix( matrix MatrixAID, matrix MatrixBID, out matrix MatrixDivID )void DivElementMatrix( const HTuple& MatrixAID, const HTuple& MatrixBID, HTuple* MatrixDivID )static void HOperatorSet.DivElementMatrix( HTuple matrixAID, HTuple matrixBID, out HTuple matrixDivID )def div_element_matrix( matrix_aid: HHandle, matrix_bid: HHandle ) -> HHandle
Herror T_div_element_matrix( const Htuple MatrixAID, const Htuple MatrixBID, Htuple* MatrixDivID )
HMatrix HMatrix::DivElementMatrix( const HMatrix& MatrixBID ) const
HMatrix HMatrix.DivElementMatrix( HMatrix matrixBID )
説明
オペレーター div_element_matrixDivElementMatrix は、2 つの行列
MatrixA と MatrixB を要素ごとに除算します。行
列は、行列ハンドル MatrixAIDmatrixAIDmatrix_aid と MatrixBIDmatrixBIDmatrix_bid により
与えられます。2 つの入力行列は同じ次元でなければなりません。新しく
生成された出力行列 MatrixDiv は結果を含みます。オペレー
ターは行列 MatrixDiv の行列ハンドル
MatrixDivIDmatrixDivIDmatrix_div_id を返します。行列の要素には、オペレーター
get_full_matrixGetFullMatrix などを使用してアクセスできます。結果の計算
式は以下の通りです。
\[\begin{eqnarray*}
\texttt{MatrixDiv}_{ij} \quad = \quad \texttt{MatrixA}_{ij}
\quad / \quad \texttt{MatrixB}_{ij}.
\end{eqnarray*}\]
例:
\[\begin{eqnarray*}
\texttt{MatrixA} =
\left[ \begin{array}{rrr}
4.0 & 8.0 & 0.0 \\
-6.0 & 7.0 & 2.0 \\
-9.0 & 4.0 & 1.0
\end{array} \right]
\qquad
\texttt{MatrixB} =
\left[ \begin{array}{rrr}
2.0 & 8.0 & -3.0 \\
-4.0 & -1.0 & 4.0 \\
-2.0 & -4.0 & 2.0
\end{array} \right]
\end{eqnarray*}\]
\[\begin{eqnarray*}
\to \qquad
\texttt{MatrixDiv} =
\left[ \begin{array}{rrr}
2.0 & 1.0 & 0.0 \\
1.5 & -7.0 & 0.5 \\
4.5 & -1.0 & 0.5
\end{array} \right]
\end{eqnarray*}\]
実行情報
実行情報
パラメーター
MatrixAIDmatrixAIDmatrix_aid (input_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力行列 A の行列ハンドル
MatrixBIDmatrixBIDmatrix_bid (input_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力行列 B の行列ハンドル
MatrixDivIDmatrixDivIDmatrix_div_id (output_control) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
分割された入力行列値をもつ行列ハンドル
結果
パラメーターが有効ならば、オペレーター div_element_matrixDivElementMatrix
は値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
create_matrixCreateMatrix
後処理の候補
get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix
他の選択候補
div_element_matrix_modDivElementMatrixMod
関連項目
mult_element_matrixMultElementMatrix, mult_element_matrix_modMultElementMatrixMod, scale_matrixScaleMatrix, scale_matrix_modScaleMatrixMod
モジュール
Foundation