Try using  +/ .* with rank.  It is not clear from your
description which of   +/ .*"2 1   or   +/ .*"1   is 
the one you want.



----- Original Message -----
From: Joseph Peralta <[EMAIL PROTECTED]>
Date: Wednesday, June 7, 2006 10:25 am
Subject: [Jprogramming] Matrix x Vector List

> 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 
> matrixmultiplication as 'x =: +/ .*', however I cannot figure out 
> how to multiply
> the matrix by each vector, rather than by the entire list.


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

Reply via email to