There is a ResizeMatrix module that needs to be ported to SCIRun5, but it has bugs as well, so when it does get ported it will need to be fixed.On Aug 3, 2017, at 2:45 PM, Dan White <dwhite@sci.utah.edu> wrote: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:
Kinda of convoluted :/Hi Jess/ChrisI 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
On Aug 3, 2017, at 9:03 AM, Christopher Butson PhD <butson@sci.utah.edu> wrote:
You can create an empty 4x4 matrix and then use SetFieldData to populate it with the 1x16 vector. However, I can’t recall if SetFieldData performs this operation row-wise or column-wise.Chris
Christopher R. Butson, PhD
Director of Neuromodulation Research
Faculty, Scientific Computing & Imaging (SCI) Institute
Associate Professor, Departments of Biomedical Engineering, Neurology & Neurosurgery
University of Utah
Warnock Engineering Building
72 South Central Campus Drive, Room 3686
Salt Lake City, Utah 84112
butson@sci.utah.edu
On Aug 3, 2017, at 8:54 AM, Petar Petrov <pip010@gmail.com> wrote:
PetarCheers,Spent 3 hours clicking around :(Hello all,how can I convert 1x16 to 4x4 matrix in scirun.
________________________________________________
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.
________________________________________________
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.
--
________________________________________________ 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.
________________________________________________
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.
________________________________________________
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.