You could make a feature request in version 5 for a "ReshapeMatrix" module--it would be pretty easy to implement since the Eigen matrix library has a nice reshape function that does exactly what you want. Dan On 8/3/2017 2:36 PM, Petar Petrov
wrote:
Hi Jess/Chris
I managed in the end by combining 4 times pairs of
SelectSubMatrix with SetSubMatrix. To extract each row from
the 1x16 vector and place it in the 4x4 matrix.Of course I can create sub-module via GUI but those you
cannot duplicate :(
So I might need the same amount of clicks in the end.
Anyway, thanks guys
On Thu, Aug 3, 2017 at 6:30 PM, Jess <jess@sci.utah.edu>
wrote:
Hi Peter,
I think Chris meant the SetSubMatrix module, which
would perform as he describe. I think it is column
wise. If it is not what you want, you can use
EvaluateMatrixUnary to transpose it.
cheers,
Jess
-- All
the best,
Petar Petrov http://ppetrov.net ________________________________________________ SCIRun users mailing list: scirun-users@sci.utah.edu http://www.sci.utah.edu/software/scirun.html To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body. |
Archive powered by MHonArc 2.6.18.