You can use try/catch, e.g.
julia> try
cholfact(A)
catch e
e.info
end
1
In 0.3, you can construct a Triangular matrix with Triangular(B, :L) and in
0.4 with LowerTriangular(B).
Den onsdag den 27. maj 2015 kl. 18.12.51 UTC-4 skrev Roy Wang:
>
> Is there an easy way to return the LAPACK success flag of Cholesky
> decompositions? I am currently calling
> (B,success_flag)=Base.LinAlg.LAPACK.potrf!(my_inputs) in order to do this.
> I suspect this is not a good way to do this.
>
> Is there a constructor for the Triangular type? I wish to make B into a
> Triangular type.
>