[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58869] [octave forge] (symbolic) Failure in m
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #58869] [octave forge] (symbolic) Failure in matrix division |
Date: |
Sun, 2 Aug 2020 06:48:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?58869>
Summary: [octave forge] (symbolic) Failure in matrix division
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Sun 02 Aug 2020 10:48:55 AM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: other
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
The following is failing with version 2.9.0 of the symbolic package and with
SymPy 1.6.1:
octave:1> pkg load symbolic
octave:2> sym (eye (2)) / sym ([1 2; 3 4])
Symbolic pkg v2.9.0: Python communication link active, SymPy v1.6.1.
error: Python exception: TypeError: unsupported operand type(s) for /: 'One'
and 'MutableDenseMatrix'
occurred at line 1 of the Python code block:
return _ins[0]/_ins[1],
error: called from
pycall_sympy__ at line 178 column 7
mrdivide at line 79 column 5
The bug seems to come from SymPy itself:
>>> from sympy import *
>>> eye (2) / Matrix ([[1, 2], [3, 4]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/sympy/core/decorators.py", line 127, in
binary_op_wrapper
return func(self, other)
File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2712,
in __truediv__
return self.__div__(other)
File "/usr/lib/python3/dist-packages/sympy/core/decorators.py", line 127, in
binary_op_wrapper
return func(self, other)
File "/usr/lib/python3/dist-packages/sympy/matrices/common.py", line 2452,
in __div__
return self * (self.one / other)
TypeError: unsupported operand type(s) for /: 'One' and 'MutableDenseMatrix'
BTW, this problem cause the failure of many unit tests in
inst/@sym/mrdivide.m.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58869>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #58869] [octave forge] (symbolic) Failure in matrix division,
Rafael Laboissiere <=