Skip to content
Prev 31178 / 398506 Next

Matrix Equation Help?

If n>>m, then solve does not work.  Consider:

 > A <- array(1:6, dim=c(2,3))
 > B <- array(1:4, dim=c(2,2))
 > solve(A, B)
Error in solve.default(A, B) : singular matrix `a' in solve

In this case, we have 6 = 3 x 2 unknowns but only 4 equations.

It raises questions about what you mean by solve.  S-Plus 2000 and 6 
have "ginverse" that will produce an answer.  You can construct such 
using "qr" or "svd".

However, before coding that, I will ask, what do you mean by "solve"?

hth.  spencer graves
Uwe Ligges wrote: