repeat_matrix T_repeat_matrix RepeatMatrix RepeatMatrix repeat_matrix (Operator)
Name
repeat_matrix T_repeat_matrix RepeatMatrix RepeatMatrix repeat_matrix
— Repeat a matrix.
Signature
Description
The operator repeat_matrix repeat_matrix RepeatMatrix RepeatMatrix RepeatMatrix repeat_matrix
creates the new matrix
MatrixRepeated
and copies all elements of the input
Matrix
n times to this new matrix, where n =
Rows Rows Rows Rows rows rows
Columns Columns Columns Columns columns columns
. The new matrix has
dimensions Rows Rows Rows Rows rows rows
rows of the input
Matrix
and Columns Columns Columns Columns columns columns
columns of the
input Matrix
. The input Matrix
is defined by
the matrix handle MatrixID MatrixID MatrixID MatrixID matrixID matrix_id
. The operator returns the
matrix handle MatrixRepeatedID MatrixRepeatedID MatrixRepeatedID MatrixRepeatedID matrixRepeatedID matrix_repeated_id
of the matrix
MatrixRepeated
. Access to the elements of the matrix
is possible e.g., with the operator get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix
.
Example:
Rows Rows Rows Rows rows rows
= 2 ,
Columns Columns Columns Columns columns columns
= 3
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
Parameters
MatrixID MatrixID MatrixID MatrixID matrixID matrix_id
(input_control) matrix →
HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the input matrix.
Rows Rows Rows Rows rows rows
(input_control) integer →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Number of copies of input matrix in row direction.
Default:
2
Suggested values:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
Restriction:
Rows >= 1
Columns Columns Columns Columns columns columns
(input_control) integer →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Number of copies of input matrix in column
direction.
Default:
2
Suggested values:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
Restriction:
Columns >= 1
MatrixRepeatedID MatrixRepeatedID MatrixRepeatedID MatrixRepeatedID matrixRepeatedID matrix_repeated_id
(output_control) matrix →
HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the repeated copied matrix.
Result
If the parameters are valid, the operator repeat_matrix repeat_matrix RepeatMatrix RepeatMatrix RepeatMatrix repeat_matrix
returns the value 2 (
H_MSG_TRUE )
. If necessary, an exception is raised.
Possible Predecessors
create_matrix create_matrix CreateMatrix CreateMatrix CreateMatrix create_matrix
Possible Successors
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix get_full_matrix
,
get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix GetValueMatrix get_value_matrix
See also
copy_matrix copy_matrix CopyMatrix CopyMatrix CopyMatrix copy_matrix
Module
Foundation