Hi,
I need to performe a (numerical) cholesky factorization of a sparse
matrix (20x20) but I'm getting a error.
I look at this thread
https://groups.google.com/forum/?fromgroups=#!searchin/sage-devel/cholesky/sage-devel/AW4pmKx49H4/7iuet3rWYQgJ
but it didn't help very much (and is a little old).

Bellow a minimal example of the problem.

{{{
sage: D = matrix(RDF, 2, 2, [[1, 1],[1,2]])
sage: D
[1.0 1.0]
[1.0 2.0]
sage: D.cholesky()
[1.0 0.0]
[1.0 1.0]
sage: D = matrix(RDF, 2, 2, [[1, 1],[1,2]], sparse=True)
sage: D
[1.0 1.0]
[1.0 2.0]
sage: D.cholesky()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/raniere/documents/cnpq_126874_2012-3/src_sage/<ipython console>
in <module>()

/home/raniere/opt/sage/local/lib/python2.7/site-packages/sage/matrix/matrix2.so
in sage.matrix.matrix2.Matrix.cholesky (sage/matrix/matrix2.c:47860)()

TypeError: base ring of the matrix must be exact, not Real Double Field
}}}

Thanks,
Raniere

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to