Skip to content

repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrixT_repeat_matrix🔗

説明🔗

repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrixT_repeat_matrix — 行列を繰り返す。

書式🔗

repeat_matrix( matrix MatrixID, integer Rows, integer Columns, out matrix MatrixRepeatedID )void RepeatMatrix( const HTuple& MatrixID, const HTuple& Rows, const HTuple& Columns, HTuple* MatrixRepeatedID )static void HOperatorSet.RepeatMatrix( HTuple matrixID, HTuple rows, HTuple columns, out HTuple matrixRepeatedID )def repeat_matrix( matrix_id: HHandle, rows: int, columns: int ) -> HHandle

Herror T_repeat_matrix( const Htuple MatrixID, const Htuple Rows, const Htuple Columns, Htuple* MatrixRepeatedID )

HMatrix HMatrix::RepeatMatrix( Hlong Rows, Hlong Columns ) const

HMatrix HMatrix.RepeatMatrix( int rows, int columns )

説明🔗

オペレーター repeat_matrixRepeatMatrix は、新しい行列 MatrixRepeated を生成し、入力行列 Matrix の全 要素を \(n\) 回新しい行列にコピーします(\(n\) = Rowsrowsrows \(\cdot\) Columnscolumnscolumns)。新しい行列には、Rowsrowsrows \(\times\) 入力行列 Matrix の行と Columnscolumnscolumns \(\times\) 入力行列 Matrix の列の次元が含まれます。入 力 Matrix は、行列ハンドル MatrixIDmatrixIDmatrix_id で定義され ます。オペレーターは行列 MatrixRepeated の行列ハンドル MatrixRepeatedIDmatrixRepeatedIDmatrix_repeated_id を返します。行列の要素には、オペレー ター get_full_matrixGetFullMatrix などを使用してアクセスできます。

例:

Rowsrowsrows = 22, Columnscolumnscolumns = 33

\[\begin{eqnarray*} \texttt{Matrix} = \left[ \begin{array}{rrr} 3.0 & -1.0 & -2.0 \\ -5.0 & 7.0 & 2.0 \end{array} \right] \end{eqnarray*}\]
\[\begin{eqnarray*} \to \qquad \texttt{MatrixRepeated} = \left[ \begin{array}{rrrrrrrrr} 3.0 & -1.0 & -2.0 & 3.0 & -1.0 & -2.0 & 3.0 & -1.0 & -2.0 \\ -5.0 & 7.0 & 2.0 & -5.0 & 7.0 & 2.0 & -5.0 & 7.0 & 2.0 \\ 3.0 & -1.0 & -2.0 & 3.0 & -1.0 & -2.0 & 3.0 & -1.0 & -2.0 \\ -5.0 & 7.0 & 2.0 & -5.0 & 7.0 & 2.0 & -5.0 & 7.0 & 2.0 \end{array} \right] \end{eqnarray*}\]

実行情報🔗

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

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

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

パラメーター🔗

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

入力行列の行列ハンドル

Rowsrowsrows (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

行方向への入力行列のコピー数

初期値: 22
推奨値: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 201, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
制限: Rows >= 1

Columnscolumnscolumns (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

列方向への入力行列のコピー数

初期値: 22
推奨値: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 201, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
制限: Columns >= 1

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

繰り返しコピーされた行列の行列ハンドル

結果🔗

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

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

組み合わせ

前処理の候補

create_matrixCreateMatrix

後処理の候補

get_full_matrixGetFullMatrix, get_value_matrixGetValueMatrix

関連項目

copy_matrixCopyMatrix

モジュール🔗

Foundation