ClassesClasses | | Operators

copy_matrixT_copy_matrixCopyMatrixCopyMatrix (Operator)

Name

copy_matrixT_copy_matrixCopyMatrixCopyMatrix — Copy a matrix.

Signature

copy_matrix( : : MatrixID : MatrixCopyID)

Herror T_copy_matrix(const Htuple MatrixID, Htuple* MatrixCopyID)

void CopyMatrix(const HTuple& MatrixID, HTuple* MatrixCopyID)

HMatrix HMatrix::CopyMatrix() const

static void HOperatorSet.CopyMatrix(HTuple matrixID, out HTuple matrixCopyID)

HMatrix HMatrix.CopyMatrix()

Description

The operator copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrix creates the new matrix MatrixCopyMatrixCopyMatrixCopyMatrixCopymatrixCopy and copies all elements of the input MatrixMatrixMatrixMatrixmatrix to this new matrix. The input MatrixMatrixMatrixMatrixmatrix is defined by the matrix handle MatrixIDMatrixIDMatrixIDMatrixIDmatrixID. The operator returns the matrix handle MatrixCopyIDMatrixCopyIDMatrixCopyIDMatrixCopyIDmatrixCopyID of the matrix MatrixCopyMatrixCopyMatrixCopyMatrixCopymatrixCopy. Access to the elements of the matrix is possible e.g. with the operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix. With this operator a matrix can be saved before the matrix is modified by the operators set_value_matrixset_value_matrixSetValueMatrixSetValueMatrixSetValueMatrix, set_full_matrixset_full_matrixSetFullMatrixSetFullMatrixSetFullMatrix, set_sub_matrixset_sub_matrixSetSubMatrixSetSubMatrixSetSubMatrix, or set_diagonal_matrixset_diagonal_matrixSetDiagonalMatrixSetDiagonalMatrixSetDiagonalMatrix.

Example:

Execution Information

Parameters

MatrixIDMatrixIDMatrixIDMatrixIDmatrixID (input_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix handle of the input matrix.

MatrixCopyIDMatrixCopyIDMatrixCopyIDMatrixCopyIDmatrixCopyID (output_control)  matrix HMatrix, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix handle of the copied matrix.

Result

If the parameters are valid, the operator copy_matrixcopy_matrixCopyMatrixCopyMatrixCopyMatrix returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_matrixcreate_matrixCreateMatrixCreateMatrixCreateMatrix

Possible Successors

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixGetFullMatrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixGetValueMatrix

Alternatives

repeat_matrixrepeat_matrixRepeatMatrixRepeatMatrixRepeatMatrix

Module

Foundation


ClassesClasses | | Operators