Changes between Initial Version and Version 1 of Ticket #28570, comment 3


Ignore:
Timestamp:
10/08/19 18:42:28 (2 years ago)
Author:
chapoton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28570, comment 3

    initial v1  
    33sage: m = matrix(Zmod(13**3),2,2,[3,5,7,11],sparse=True)
    44sage: m.inverse()     
     5---------------------------------------------------------------------------
     6AttributeError                            Traceback (most recent call last)
     7<ipython-input-12-91aa9265ee1c> in <module>()
     8----> 1 m.inverse()
     9
     10/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/matrix/matrix2.pyx in sage.matrix.matrix2.Matrix.inverse (build/cythonized/sage/matrix/matrix2.c:66498)()
     11   8919
     12   8920         """
     13-> 8921         return ~self
     14   8922
     15   8923     def adjugate(self):
     16
     17/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/matrix/matrix0.pyx in sage.matrix.matrix0.Matrix.__invert__ (build/cythonized/sage/matrix/matrix0.c:35802)()
     18   5400                 return ~self.matrix_over_field()
     19   5401             else:
     20-> 5402                 return self.inverse_of_unit()
     21   5403         else:
     22   5404             A = self.augment(self.parent().identity_matrix())
     23
     24/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/matrix/matrix0.pyx in sage.matrix.matrix0.Matrix.inverse_of_unit (build/cythonized/sage/matrix/matrix0.c:36801)()
     25   5501             # CRT or p-adic lifting.
     26   5502             N = R.characteristic()
     27-> 5503             m, D = self.lift_centered()._invert_flint()
     28   5504             if not D.gcd(N).is_one():
     29   5505                 raise ZeroDivisionError("input matrix must be nonsingular")
     30
     31/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/structure/element.pyx in sage.structure.element.Element.__getattr__ (build/cythonized/sage/structure/element.c:4607)()
     32    487             AttributeError: 'LeftZeroSemigroup_with_category.element_class' object has no attribute 'blah_blah'
     33    488         """
     34--> 489         return self.getattr_from_category(name)
     35    490
     36    491     cdef getattr_from_category(self, name):
     37
     38/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/structure/element.pyx in sage.structure.element.Element.getattr_from_category (build/cythonized/sage/structure/element.c:4716)()
     39    500         else:
     40    501             cls = P._abstract_element_class
     41--> 502         return getattr_from_other_class(self, cls, name)
     42    503
     43    504     def __dir__(self):
     44
     45/home/chapoton/sage3/local/lib/python3.7/site-packages/sage/cpython/getattr.pyx in sage.cpython.getattr.getattr_from_other_class (build/cythonized/sage/cpython/getattr.c:2614)()
     46    392         dummy_error_message.cls = type(self)
     47    393         dummy_error_message.name = name
     48--> 394         raise AttributeError(dummy_error_message)
     49    395     attribute = <object>attr
     50    396     # Check for a descriptor (__get__ in Python)
     51
     52AttributeError: 'sage.matrix.matrix_integer_sparse.Matrix_integer_sparse' object has no attribute '_invert_flint'
    553}}}