copy_matrixT_copy_matrixCopyMatrixCopyMatrixcopy_matrix (算子名称)
名称
copy_matrixT_copy_matrixCopyMatrixCopyMatrixcopy_matrix — Copy a matrix.
参数签名
def copy_matrix(matrix_id: HHandle) -> HHandle
描述
该算子 copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrixcopy_matrix creates the new matrix
MatrixCopy and copies all elements of the input
Matrix to this new matrix. The input Matrix is
defined by the matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id. 该算子
returns the matrix handle MatrixCopyIDMatrixCopyIDMatrixCopyIDMatrixCopyIDmatrixCopyIDmatrix_copy_id of the matrix
MatrixCopy. Access to the elements of the matrix is
possible e.g., with 该算子 get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix.
With this operator a matrix can be saved
before the matrix is modified by 该算子s
set_value_matrixset_value_matrixSetValueMatrixSetValueMatrixSetValueMatrixset_value_matrix, set_full_matrixset_full_matrixSetFullMatrixSetFullMatrixSetFullMatrixset_full_matrix,
set_sub_matrixset_sub_matrixSetSubMatrixSetSubMatrixSetSubMatrixset_sub_matrix, or set_diagonal_matrixset_diagonal_matrixSetDiagonalMatrixSetDiagonalMatrixSetDiagonalMatrixset_diagonal_matrix.
Example:
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
MatrixIDMatrixIDMatrixIDMatrixIDmatrixIDmatrix_id (input_control) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Matrix handle of the input matrix.
MatrixCopyIDMatrixCopyIDMatrixCopyIDMatrixCopyIDmatrixCopyIDmatrix_copy_id (output_control) matrix → HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Matrix handle of the copied matrix.
结果
如果参数均有效,算子 copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrixcopy_matrix
返回值 2 (
H_MSG_TRUE)
. 如有必要,将引发异常。
可能的前置算子
create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrixcreate_matrix
可能的后置算子
get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrixget_full_matrix,
get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrixget_value_matrix
可替代算子
repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrixrepeat_matrix
模块
Foundation