Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexvong243f opened this issue Aug 30, 2022 · 2 comments
Open

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

alexvong243f opened this issue Aug 30, 2022 · 2 comments

Comments

@alexvong243f
Copy link
Collaborator

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?

alexvong243f pushed a commit to alexvong243f/octsympy that referenced this issue Aug 30, 2022
This is a prerequisite for making @sym/horzcat Array-compatible.

Partially fixes <gnu-octave#1215>.

* inst/@sym/transpose.m: Implement it.
alexvong243f pushed a commit to alexvong243f/octsympy that referenced this issue Aug 31, 2022
This is a prerequisite for making @sym/horzcat Array-compatible.

Partially fixes <gnu-octave#1215>.

* inst/@sym/transpose.m: Implement it.
@cbm755
Copy link
Collaborator

cbm755 commented Sep 2, 2022

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
Copy link
Collaborator Author

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.

cbm755 pushed a commit that referenced this issue Nov 12, 2024
This is a prerequisite for making @sym/horzcat Array-compatible.

Partially fixes <#1215>.

* inst/@sym/transpose.m: Implement it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants