Closed madeleineudell closed 6 years ago
Never mind! Of course A should be square (and positive definite).
Hm, yeah, the package is not really giving helpful feedback for incorrect input, maybe a size check is worth it!
👍 , a quick LinearAlgebra.checksquare(A)
would do the job. That doesn't cost much, and should preferably be included in all methods that require square matrices/linear maps.
On Julia 1.0, I get bounds errors from running
cg
. Here's a simple test:the calls to cg give the following errors: