#18381: Cholesky decomposition should be real
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: linear algebra | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/18381 | c357c20417cdc41bf103f556c025e114ed8f1fc3
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dimpase):
by the way, do you know how to fix the following wrong error message:
{{{
sage: m=matrix(RDF,[[2,1],[1,2]],sparse=True)
sage: m.cholesky()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-4-18ff9bf78b55> in <module>()
----> 1 m.cholesky()
/home/dima/software/sage/src/sage/matrix/matrix2.pyx in
sage.matrix.matrix2.Matrix.cholesky
(/home/dima/software/sage/src/build/cythonized/sage/matrix/matrix2.c:80453)()
11429 if not self.base_ring().is_exact():
11430 msg = 'base ring of the matrix must be exact, not
{0}'
> 11431 raise TypeError(msg.format(self.base_ring()))
11432 if not self.is_positive_definite():
11433 msg = 'matrix is not positive definite, so cannot
compute Cholesky decomposition'
TypeError: base ring of the matrix must be exact, not Real Double Field
}}}
(it should say that the matrix must be dense...)
--
Ticket URL: <http://trac.sagemath.org/ticket/18381#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.