repeat_matrixT_repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrix (算子)
名称
repeat_matrixT_repeat_matrixRepeatMatrixRepeatMatrixrepeat_matrix — 重复一个矩阵。
签名
描述
算子 repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrixrepeat_matrix creates the new matrix
MatrixRepeated and copies all elements of the input
Matrix n times to this new matrix, where n =
RowsRowsRowsRowsrowsrows ColumnsColumnsColumnsColumnscolumnscolumns. The new matrix has
dimensions RowsRowsRowsRowsrowsrows rows of the input
Matrix and ColumnsColumnsColumnsColumnscolumnscolumns columns of the
input Matrix. The input Matrix is defined by
the matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id. The operator returns the
matrix handle MatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDmatrixRepeatedIDmatrix_repeated_id of the matrix
MatrixRepeated.可通过算子
get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix 等方式访问该矩阵的元素。
示例:
RowsRowsRowsRowsrowsrows = 2,
ColumnsColumnsColumnsColumnscolumnscolumns = 3
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (输入控制) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
输入矩阵的矩阵句柄。
RowsRowsRowsRowsrowsrows (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of copies of input matrix in row direction.
默认值:
2
建议值:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
限制:
Rows >= 1
ColumnsColumnsColumnsColumnscolumnscolumns (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of copies of input matrix in column
direction.
默认值:
2
建议值:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20
限制:
Columns >= 1
MatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDMatrixRepeatedIDmatrixRepeatedIDmatrix_repeated_id (输出控制) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Matrix handle of the repeated copied matrix.
结果
如果参数有效,算子 repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrixrepeat_matrix 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix
可能的后继
get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix,
get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix
另见
copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrixcopy_matrix
模块
基础