Opened 5 months ago

Closed 5 months ago

Last modified 4 months ago

#28935 closed defect (fixed)

infinite recursion in exponential of sparse matrices

Reported by: gh-mwageringel Owned by:
Priority: major Milestone: sage-9.1
Component: symbolics Keywords:
Cc: Merged in:
Authors: Markus Wageringel Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 1ec3605 (Commits) Commit:
Dependencies: Stopgaps:

Description

sage: matrix([[0]], sparse=True).exp()
...
RecursionError: maximum recursion depth exceeded while calling a Python object

as reported at https://ask.sagemath.org/question/49190/exponential-function-does-not-work-for-diagonal-matrices.

Change History (4)

comment:1 Changed 5 months ago by gh-mwageringel

  • Authors set to Markus Wageringel
  • Branch set to u/gh-mwageringel/28935
  • Commit set to 1ec360547144f4a5dbcaf0dce960307dd9854dcc
  • Status changed from new to needs_review

New commits:

1ec360528935: fix exponential of sparse matrix

comment:2 Changed 5 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok, as a bandaid

comment:3 Changed 5 months ago by vbraun

  • Branch changed from u/gh-mwageringel/28935 to 1ec360547144f4a5dbcaf0dce960307dd9854dcc
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:4 Changed 4 months ago by kcrisman

  • Commit 1ec360547144f4a5dbcaf0dce960307dd9854dcc deleted

See also #12101 and some of the comments there - bandaid indeed, due to heavy computation and perhaps people don't want denseness.

Note: See TracTickets for help on using tickets.