Skip to content

bug in error message?

2 messages · Erich Neuwirth, Brian Ripley

#
mm<-c(1,1,1,1)
dim(mm)<-c(2,2)
solve(mm)

produces

Error in solve.default(mm) : singular matrix `a' in solve

shouldn't this refer to
`mm'
instead of
`a'

--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, 5 Jul 2001, Erich Neuwirth wrote:

            
There are two matrix arguments in solve.default, called `a' and `b'.
It is telling you that `a' is singular.  There is no matrix `mm' in
solve().