gnu-octave / symbolic

A Symbolic Package for Octave using SymPy
https://octave.sourceforge.io/symbolic/
GNU General Public License v3.0
151 stars 36 forks source link

@sym/{ctranspose,transpose}: *transpose does not work on None #1215

Open alexvong243f opened 2 years ago

alexvong243f commented 2 years ago

I run into the following issues while improving #1194.

Let none = pycall_sympy__ ('return None').

Then both none.' and none' give error: Python exception: AttributeError: 'NoneType' object has no attribute...

I think both none.' and none' should evaluate to none. WDYT?

cbm755 commented 2 years ago

I guess that's right, especially if that is convenient for other code. I'm not really concerned about them being errors either: anyone hitting this In Real Life has likely had something go wrong...

But again, I suspect you need it for other reasons...

alexvong243f commented 2 years ago

Yep, we need this for our 2D-sym-compatible functions otherwise tests will fail. I think none should have similar semantics as nan so it won't be too hard to fix / test.