Re: how to load a RealMatrix from file

2015-02-20 Thread Thomas Neidhart
Hi Joakim, it depends how you stored the matrix in the first place. The MatrixUtils.deserializeRealMatrix() method will only work if you have previously serialized the matrix using MatrixUtils.serializeRealMatrix() and is mainly intended to be used for standard Java serialization. In case you

RE: how to load a RealMatrix from file

2015-02-20 Thread Joakim Soderberg
. x A, where x is a vector and A a matrix. -Original Message- From: Thomas Neidhart [mailto:thomas.neidh...@gmail.com] Sent: Friday, February 20, 2015 1:50 AM To: Commons Users List Subject: Re: how to load a RealMatrix from file Hi Joakim, it depends how you stored the matrix

Re: how to load a RealMatrix from file

2015-02-20 Thread Thomas Neidhart
On 02/20/2015 07:21 PM, Joakim Soderberg wrote: Thanks Thomas, That’s helpful, but I think you should add more easy-to-use functions for the convenience of the research community who just want to implement some algorithm and not spend time with coding IO. if you come up with a use-case we

how to load a RealMatrix from file

2015-02-19 Thread Joakim Soderberg
Hello, Can someone please explain the easiest way to load a RealMatrix from flle? I have found MatrixUtils.deserializeRealMatrix(Object instance, String fieldName, ObjectInputStream ois) But I was expecting to find a function like this: loadMatrix( inputStream) And why