scale_matrix_modScaleMatrixModScaleMatrixModscale_matrix_modT_scale_matrix_mod
説明
scale_matrix_modScaleMatrixModScaleMatrixModscale_matrix_modT_scale_matrix_mod — 行列の大きさを変更する。
書式
scale_matrix_mod( matrix MatrixID, number Factor )void ScaleMatrixMod( const HTuple& MatrixID, const HTuple& Factor )static void HOperatorSet.ScaleMatrixMod( HTuple matrixID, HTuple factor )def scale_matrix_mod( matrix_id: HHandle, factor: Union[int, float] ) -> None
Herror T_scale_matrix_mod( const Htuple MatrixID, const Htuple Factor )
void HMatrix::ScaleMatrixMod( const HTuple& Factor ) const
void HMatrix::ScaleMatrixMod( double Factor ) const
void HMatrix.ScaleMatrixMod( HTuple factor )
void HMatrix.ScaleMatrixMod( double factor )
説明
オペレーター scale_matrixScaleMatrix は指定倍率で行列
Matrix の大きさを変更します。行列は行列ハンドル
MatrixIDmatrixIDmatrix_id により定義されます。結果は各入力要素に上書きされ
ます。行列の要素には、オペレーター get_full_matrixGetFullMatrix などを
使用してアクセスできます。結果の計算式は以下の通りです。
\[\begin{eqnarray*}
\texttt{Matrix}_{ij} \quad = \quad \textrm{Factor} \quad
\cdot \quad \texttt{Matrix}_{ij}.
\end{eqnarray*}\]
例:
Factorfactorfactor = 1.51.5
\[\begin{eqnarray*}
\texttt{Matrix} =
\left[ \begin{array}{rrr}
3.0 & 1.0 & -2.0 \\
-2.0 & 6.0 & 2.0 \\
-5.0 & -4.0 & 1.0
\end{array} \right]
\end{eqnarray*}\]
\[\begin{eqnarray*}
\qquad \to \qquad
\texttt{Matrix} =
\left[ \begin{array}{rrr}
4.5 & 1.5 & -3.0 \\
-3.0 & 9.0 & 3.0 \\
-7.5 & -6.0 & 1.5
\end{array} \right]
\end{eqnarray*}\]
実行情報
実行情報
このオペレータは以下の入力パラメータの状態を変更します :
このパラメータの値は外部同期なしには複数スレッド間で共有されません。
パラメーター
MatrixIDmatrixIDmatrix_id (input_control, 状態が変更されました) matrix → (handle)HTuple (HHandle)HMatrix, HTuple (IntPtr)HHandleHtuple (handle)
入力行列の行列ハンドル
Factorfactorfactor (input_control) number → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[int, float]Htuple (double / Hlong)
倍率
初期値: 2.02.0
推奨値: 0.1, 0.2, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0, 3.0, 5.0, 10.00.1, 0.2, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0, 3.0, 5.0, 10.0
結果
パラメーターが有効ならば、オペレーター scale_matrix_modScaleMatrixMod は
値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
create_matrixCreateMatrix
後処理の候補
get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix
他の選択候補
scale_matrixScaleMatrix
関連項目
mult_element_matrixMultElementMatrix, mult_element_matrix_modMultElementMatrixMod, div_element_matrixDivElementMatrix, div_element_matrix_modDivElementMatrixMod
モジュール
Foundation