Awesome! Thank you so much for this.
Oscar
Oscar Bastidas, Ph.D.
Postdoctoral Research Associate
University of Minnesota
On Tue, Feb 16, 2021, 5:25 AM Alex Herbert wrote:
> The methods:
>
> double[][] getData();
> double[][] getDataRef();
>
> Provide access to the underlying 2D matrix
The methods:
double[][] getData();
double[][] getDataRef();
Provide access to the underlying 2D matrix as a copy or a direct reference.
The method:
double getEntry(int, int);
Provides access to an element of the matrix.
So you can do for example:
Array2DRowRealMatrix m = ...;
Hello,
Would someone please tell me how I can go about converting a 'RealMatrix'
object to an array? When I just print out the RealMatrix object I get
something that looks like:
Array2DRowRealMatrix{{123},{456},{789}}
I would like to be able to selectively cycle through each number
individual