From p.dalgaard@biostat.ku.dk  Thu Sep 26 07:44:03 2002
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 26 Sep 2002 08:44:03 +0200
Subject: error with complex solve (PR#2068)
In-Reply-To: <200209260423.GAA12038@pubhealth.ku.dk>
References: <200209260423.GAA12038@pubhealth.ku.dk>
Message-ID: <x27kh95jyk.fsf@biostat.ku.dk>

john.peters@csiro.au writes:

> > solve(a,b)
> Error in solve.default(a, b) : A must be a complex matrix

Two bugs here, one trivial: The error message should say B, not A. The
(slightly) less trivial one is that b needs conversion to matrix for
the underlying Lapack routine to work:

>  solve(a,matrix(b))
                      [,1]
[1,] 0.3608247-0.06185567i
[2,] 0.5463918+0.02061856i


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


error with complex solve (PR#2068)
Peter Dalgaard BSA