src/utils/matrix/AbstractMatrix.java
public Matrix copy() throws MatrixException {
        Matrix newMatrix;
        // Make deep copy of matrix.
        try {
            newMatrix = (Matrix)super.clone();
            newMatrix.setInitializer(getInitializer());
            newMatrix.copyMatrixData(this); // Copy matrix data
            if (getMask() != null) newMatrix.setMask(getMask().copy());
        } catch (CloneNotSupportedException exception) {
            throw new MatrixException("Cloning of matrix failed.");
        }
        return newMatrix;
    }
/**
     * Creates new matrix with object full copy of this matrix.
     *
     * @return newly created reference matrix.
     * @throws MatrixException throws exception if mask is not set or cloning of matrix fails.
     */
Creates new matrix with object full copy of this matrix.

@return newly created reference matrix.
@throws MatrixException throws exception if mask is not set or cloning of matrix fails.
Creates new matrix with object full copy of this matrix . @return newly created reference matrix . @throws MatrixException throws exception if mask is not set or cloning of matrix fails .
public Matrix copy() throws MatrixException {
        Matrix newMatrix;
        try {
            newMatrix = (Matrix)super.clone();
            newMatrix.setInitializer(getInitializer());
            newMatrix.copyMatrixData(this); 
            if (getMask() != null) newMatrix.setMask(getMask().copy());
        } catch (CloneNotSupportedException exception) {
            throw new MatrixException("Cloning of matrix failed.");
        }
        return newMatrix;
    }
public Matrix copy ( ) throws MatrixException { Matrix newMatrix ; try { newMatrix = ( Matrix ) super . clone ( ) ; newMatrix . setInitializer ( getInitializer ( ) ) ; newMatrix . copyMatrixData ( this ) ; if ( getMask ( ) != null ) newMatrix . setMask ( getMask ( ) . copy ( ) ) ; } catch ( CloneNotSupportedException exception ) { throw new MatrixException ( "Cloning of matrix failed." ) ; } return newMatrix ; }
Creates new matrix with object full copy of this matrix.
Creates new matrix with object full copy of this matrix .
// Make deep copy of matrix.
 // Copy matrix data
