octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58870] [octave forge] (symbolic) Failure in m


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #58870] [octave forge] (symbolic) Failure in matrix power
Date: Sun, 2 Aug 2020 07:12:04 -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/?58870>

                 Summary: [octave forge] (symbolic) Failure in matrix power
                 Project: GNU Octave
            Submitted by: rlaboiss
            Submitted on: Sun 02 Aug 2020 11:12:02 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:

In the symbolic package, version 2.9.0, there is a failing unit test in
inst/@sym/mpower.m when running against SymPy 1.6.1, which is related to
this:


octave:1> pkg load symbolic
octave:2>  syms x
Symbolic pkg v2.9.0: Python communication link active, SymPy v1.6.1.
octave:3>  A = [1 2; 3 4];
octave:4>  B = x^A;
error: Python exception: TypeError: unsupported operand type(s) for ** or
pow(): 'Symbol' and 'MutableDenseMatrix'
    occurred at line 2 of the Python code block:
    return x**y
error: called from
    pycall_sympy__ at line 178 column 7
    mpower at line 76 column 5


The problem seems to come from SymPy itself:


>>> from sympy import *
>>> x = symbols ('x')
>>> x ** Matrix ([[1, 2], [3, 4]])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for ** or pow(): 'Symbol' and
'MutableDenseMatrix'






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58870>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]