Thank you very much!

> Use the rank conjuction.
> 
>    [dat=: 4 2$ 0 1 1 0 0 0 1 1
> 0 1
> 1 0
> 0 0
> 1 1
>    3 2 *"1 dat
> 0 2
> 3 0
> 0 0
> 3 2
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> NEIL JAMES HOSEY Sent: Sunday, April 29, 2007 05:12
> To: [email protected]
> Subject: [Jprogramming] Matrix Multiplication Problem
> 
> Hi all,
> 
> Greatly appreciate the comments about boxing last week. 
> It solved my problem.  
> 
> I have one more question ( maybe too simple) about a
> certain form of matrix multiplication ( i think its point
> to point?)
> 
> Anyway say I have data matrix dat
> where:
> 
> dat=
> 
> 0 1
> 1 0
> 0 0
> 1 1
> 
> how can I multiply say 3 2 by every row.  Resulting in the
> following matrix:
> 
> dat =
> 0 2
> 3 0
> 0 0
> 3 2
> 
> I thought that this form of multiplication was done with
> +/.* but I am getting domain errors.
> 
> Apologies about the simplcity of this question but its
> driving me mad!!
> 
> Thanks in advance,
> 
> Neil
> ----------------------------------------------------------
> ------------ For information about J forums see
> http://www.jsoftware.com/forums.htm
> 
> 
> ----------------------------------------------------------
> ------------ For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to