repeat_matrixT_repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrix (Operator)

Name

repeat_matrixT_repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrix — Wiederhole eine Matrix.

Signatur

repeat_matrix( : : MatrixID, Rows, Columns : MatrixRepeatedID)

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

void RepeatMatrix(const HTuple& MatrixID, const HTuple& Rows, const HTuple& Columns, HTuple* MatrixRepeatedID)

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

static void HOperatorSet.RepeatMatrix(HTuple matrixID, HTuple rows, HTuple columns, out HTuple matrixRepeatedID)

HMatrix HMatrix.RepeatMatrix(int rows, int columns)

def repeat_matrix(matrix_id: HHandle, rows: int, columns: int) -> HHandle

Beschreibung

Der Operator repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrixrepeat_matrix erstellt die neue Matrix MatrixRepeated und kopiert alle Elemente der Eingabematrix Matrix n mal in die neue Matrix, wobei n = RowsRowsRowsRowsrowsrows ColumnsColumnsColumnsColumnscolumnscolumns. Die neue Matrix hat als Dimensionen RowsRowsRowsRowsrowsrows Zeilen der Eingabematrix Matrix und ColumnsColumnsColumnsColumnscolumnscolumns Spalten der Eingabematrix Matrix. Die Eingabematrix ist durch das Matrix Handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id definiert. Der Operator gibt das Matrix Handle MatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDmatrixRepeatedIDmatrix_repeated_id der Matrix MatrixRepeated zurück. Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix möglich.

Beispiel:

RowsRowsRowsRowsrowsrows = 2, ColumnsColumnsColumnsColumnscolumnscolumns = 3

Ausführungsinformationen

Parameter

MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (input_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der Eingabematrix.

RowsRowsRowsRowsrowsrows (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der Kopien der Matrix in Zeilenrichtung.

Defaultwert: 2

Wertevorschläge: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20

Restriktion: Rows >= 1

ColumnsColumnsColumnsColumnscolumnscolumns (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der Kopien der Matrix in Spaltenrichtung.

Defaultwert: 2

Wertevorschläge: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20

Restriktion: Columns >= 1

MatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDmatrixRepeatedIDmatrix_repeated_id (output_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der mehrfach kopierten Matrix.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrixrepeat_matrix den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix

Siehe auch

copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrixcopy_matrix

Modul

Foundation