Hi,

 

Thanks for all your help with my previous question, hopefully this one is
slightly less stupid.

 

I have a matrix like:

 

   yuvmat

 0.299  0.587 0.114

_0.147 _0.289 0.436

 0.615 _0.515  _0.1

 

Along with this matrix, I have some data in an nx4 format. I would like to
process this data by removing the last element and then multiplying each row
vector by the matrix, and return an nx3 list of the resultant vectors. I got
that I can use '}:"1 data'  to remove the last element, and have matrix
multiplication as 'x =: +/ .*', however I cannot figure out how to multiply
the matrix by each vector, rather than by the entire list.

 

Thanks for your help with this,

 

Joe Peralta

 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to