Closed enoonIT closed 10 years ago
Hi @enoonIT,
There is nothing wrong with resize
method. It works as expected. You want something that would be called reshape
(or something like that) and not yet implemented in la4j. I will thing about this functionality in a further releases.
For now, I would suggest you to use simple iteration-loop in order to copy the values from vector into the matrix in a way you want.
Thanks!
Thanks for the clarification!
la4j version 0.4.9
Given a BasicVector of length 9
I would expect Update to contain the values of vector rearranged in a 3x3 grid, but what happens is that the first row keeps the values while the rest is set to 0.
Ideas?