bugGNU Octave - Bugs: bug #58870, [octave forge] (symbolic) Failure...

 
 

bug #58870: [octave forge] (symbolic) Failure in matrix power

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Sun 02 Aug 2020 11:12:02 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 06 Jul 2022 06:51:05 PM UTC, comment #2: 

Closing as upstream issue as requested.

Markus Mützel <mmuetzel>
Group administrator
Wed 06 Jul 2022 06:29:58 PM UTC, comment #1: 

This is now marked a known failure (and upstream limitation) so tests at least pass in 3.0.0.

Please close.

Colin Macdonald <cbm>
Sun 02 Aug 2020 11:12:02 AM UTC, original submission:  

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'


Rafael Laboissière <rlaboiss>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by cbm (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-06 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code