copy_matrix T_copy_matrix CopyMatrix CopyMatrix (Operator)
Name
copy_matrix T_copy_matrix CopyMatrix CopyMatrix
— Copy a matrix.
Signature
Description
The operator copy_matrix copy_matrix CopyMatrix CopyMatrix CopyMatrix
creates the new matrix
MatrixCopy MatrixCopy MatrixCopy MatrixCopy matrixCopy
and copies all elements of the input
Matrix Matrix Matrix Matrix matrix
to this new matrix. The input Matrix Matrix Matrix Matrix matrix
is
defined by the matrix handle MatrixID MatrixID MatrixID MatrixID matrixID
. The operator
returns the matrix handle MatrixCopyID MatrixCopyID MatrixCopyID MatrixCopyID matrixCopyID
of the matrix
MatrixCopy MatrixCopy MatrixCopy MatrixCopy matrixCopy
. Access to the elements of the matrix is
possible e.g. with the operator get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix
.
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_full_matrix set_full_matrix SetFullMatrix SetFullMatrix SetFullMatrix
,
set_sub_matrix set_sub_matrix SetSubMatrix SetSubMatrix SetSubMatrix
, or set_diagonal_matrix set_diagonal_matrix SetDiagonalMatrix SetDiagonalMatrix SetDiagonalMatrix
.
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
(input_control) matrix →
HMatrix , HTuple HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Matrix handle of the input matrix.
MatrixCopyID MatrixCopyID MatrixCopyID MatrixCopyID matrixCopyID
(output_control) matrix →
HMatrix , HTuple 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
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
Possible Predecessors
create_matrix create_matrix CreateMatrix CreateMatrix CreateMatrix
Possible Successors
get_full_matrix get_full_matrix GetFullMatrix GetFullMatrix GetFullMatrix
,
get_value_matrix get_value_matrix GetValueMatrix GetValueMatrix GetValueMatrix
Alternatives
repeat_matrix repeat_matrix RepeatMatrix RepeatMatrix RepeatMatrix
Module
Foundation