Yes, the columns in the right argument of %. must be
linearly independent, and there is no way for them to
be so in a wide (as opposed to tall) matrix.

You can check whether the columns are l.i. in one
of several ways:

   1:@%. :: 0: M
0

   -/ .* (+|:M) +/ .* M
2.64534e_19



----- Original Message -----
From: Philippe Nadeau <[EMAIL PROTECTED]>
Date: Monday, January 7, 2008 12:28
Subject: [Jprogramming] Matrix divide help
To: [email protected]

> 
> Hi,
> 
> I receive a length error while using %. and I don't know why.
> 
> M=. |: 1 418 398 1639 3430 1184,.1 580 572 1197 3044 1309,.1 622 
> 596 
> 1347 3531 1155
> 
> y=. 579 496 510
> 
>       y %. M
> |length error
> |   y    %. M
> 
> Is it because the columns of the matrix are not linearly 
> independent ? 
> If so, how can I check if they are in a non-square matrix ?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to