public void set( T a ) {
        if( a.getType() == getType() )
            mat.set(a.getMatrix());
        else {
            setMatrix(a.mat.copy());
        }
    }
public void set ( T a ) { if ( a . getType ( ) == getType ( ) ) mat . set ( a . getMatrix ( ) ) ; else { setMatrix ( a . mat . copy ( ) ) ; } }
Sets the elements in this matrix to be equal to the elements in the passed in matrix.
Both matrix must have the same dimension.

@param a The matrix whose value this matrix is being set to.