copy_matrix T_copy_matrix CopyMatrix CopyMatrix copy_matrix (Operator)
Name
copy_matrix T_copy_matrix CopyMatrix CopyMatrix copy_matrix
— Copy a matrix.
Signature
def copy_matrix (matrix_id : HHandle) -> HHandle
Description
The operator copy_matrix copy_matrix CopyMatrix CopyMatrix CopyMatrix copy_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 MatrixID MatrixID MatrixID MatrixID matrixID matrix_id
. The operator
returns the matrix handle MatrixCopyID MatrixCopyID MatrixCopyID MatrixCopyID matrixCopyID matrix_copy_id
of the matrix
MatrixCopy
. 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
.
With this operator a matrix can be saved
before the matrix is modified by the operators
set_value_matrix set_value_matrix SetValueMatrix SetValueMatrix SetValueMatrix set_value_matrix
, set_full_matrix set_full_matrix SetFullMatrix SetFullMatrix SetFullMatrix set_full_matrix
,
set_sub_matrix set_sub_matrix SetSubMatrix SetSubMatrix SetSubMatrix set_sub_matrix
, or set_diagonal_matrix set_diagonal_matrix SetDiagonalMatrix SetDiagonalMatrix SetDiagonalMatrix set_diagonal_matrix
.
Example:
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.
MatrixCopyID MatrixCopyID MatrixCopyID MatrixCopyID matrixCopyID matrix_copy_id
(output_control) matrix →
HMatrix , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the copied matrix.
Result
If the parameters are valid, the operator copy_matrix copy_matrix CopyMatrix CopyMatrix CopyMatrix copy_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
Alternatives
repeat_matrix repeat_matrix RepeatMatrix RepeatMatrix RepeatMatrix repeat_matrix
Module
Foundation