#10116: norm method does not work for sparse matrices
------------------------------+---------------------------------------------
Reporter: victor | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: linear algebra | Keywords: matrices
Author: Victor Miller | Upstream: Reported upstream. Little or no
feedback.
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
sage: M = matrix(ZZ,4,4,sparse=True)
sage: M.norm()
Traceback (click to the left of this block for traceback)
...
AttributeError:
'sage.matrix.matrix_generic_sparse.Matrix_generic_sparse' object has
no
attribute 'SVD'
sage: M.norm(1)
Traceback (click to the left of this block for traceback)
...
TypeError: base_ring (=Category of objects) must be a ring
and similarly for any other argument to norm.
When I do
sage: M.base_ring()
Integer Ring
But if I do
sage: M = matrix(ZZ,4,4) # without sparse=True
everything works ok
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10116>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.