public static DMatrix3x3 convert(DMatrixRMaj input , DMatrix3x3 output ) {
        if( output == null)
            output = new DMatrix3x3();

        if( input.getNumRows() != output.getNumRows() )
            throw new IllegalArgumentException("Number of rows do not match");
        if( input.getNumCols() != output.getNumCols() )
            throw new IllegalArgumentException("Number of columns do not match");

        output.a11 = input.data[0];
        output.a12 = input.data[1];
        output.a13 = input.data[2];
        output.a21 = input.data[3];
        output.a22 = input.data[4];
        output.a23 = input.data[5];
        output.a31 = input.data[6];
        output.a32 = input.data[7];
        output.a33 = input.data[8];

        return output;
    }
public static DMatrix3x3 convert ( DMatrixRMaj input , DMatrix3x3 output ) { if ( output == null ) output = new DMatrix3x3 ( ) ; if ( input . getNumRows ( ) != output . getNumRows ( ) ) throw new IllegalArgumentException ( "Number of rows do not match" ) ; if ( input . getNumCols ( ) != output . getNumCols ( ) ) throw new IllegalArgumentException ( "Number of columns do not match" ) ; output . a11 = input . data [ 0 ] ; output . a12 = input . data [ 1 ] ; output . a13 = input . data [ 2 ] ; output . a21 = input . data [ 3 ] ; output . a22 = input . data [ 4 ] ; output . a23 = input . data [ 5 ] ; output . a31 = input . data [ 6 ] ; output . a32 = input . data [ 7 ] ; output . a33 = input . data [ 8 ] ; return output ; }
Converts {@link DMatrixRMaj} into {@link DMatrix3x3}

@param input Input matrix.
@param output Output matrix.  If null a new matrix will be declared.
@return Converted matrix.