error with complex solve (PR#2068)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
26 Sep 2002 08:44:03 +0200
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._