extraTrees (version 1.0.5)

toJavaMatrix2D: Utility function for converting an R matrix (standard matrix or SparseMatrix) to appropriate Java matrix object.

Description

Internal function used for converting an R matrix to an appropriate object in Java. It uses toJavaMatrix() and toJavaCSMatrix() underneath and returns a reference to general matrix representation in Java of type Array2D (interface).

Usage

toJavaMatrix2D( m )

Arguments

m
matrix of numeric values.

Value

reference to Java matrix (dense or sparse) with the same contents as the input R matrix.