Operator Reference
copy_matrix (Operator)
copy_matrix — Copy a matrix.
Signature
copy_matrix( : : MatrixID : MatrixCopyID)
Description
The operator 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. The operator
returns the matrix handle MatrixCopyID of the matrix
MatrixCopy. Access to the elements of the matrix is
possible e.g., with the operator get_full_matrix.
With this operator a matrix can be saved
before the matrix is modified by the operators
set_value_matrix, set_full_matrix,
set_sub_matrix, or 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 (input_control) matrix → (handle)
Matrix handle of the input matrix.
MatrixCopyID (output_control) matrix → (handle)
Matrix handle of the copied matrix.
Result
If the parameters are valid, the operator copy_matrix
returns the value 2 (
H_MSG_TRUE)
. If necessary, an exception is raised.
Possible Predecessors
Possible Successors
get_full_matrix,
get_value_matrix
Alternatives
Module
Foundation