Internal function used for converting an R matrix to a Matrix object in Java. Matrix class is a custom Java class used for storing matrices by the implementation of ExtraTrees in Java.
toJavaMatrix( m )
matrix of numeric values.
reference to Java matrix with the same contents as the input R matrix.