Re: [math] How to Convert 'RealMatrix' Object to Array

2021-02-16 Thread Oscar Bastidas
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

Re: [math] How to Convert 'RealMatrix' Object to Array

2021-02-16 Thread Alex Herbert
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 = ...;

[math] How to Convert 'RealMatrix' Object to Array

2021-02-16 Thread Oscar Bastidas
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