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

[WIP] Add 2D sym functions and use them. #1235

Open
wants to merge 1 commit into
base: Array_not_Matrix
Choose a base branch
from

Conversation

alexvong243f
Copy link
Collaborator

@alexvong243f alexvong243f commented Sep 7, 2022

We add 2D sym functions to abstract over the idea of 2D sym so that we
can choose to represent non-Matrix 2D sym to be something other than
an Array in the future. For example, we could use TableForm.

This is incomplete. More functions need to use these 2D sym
functions. Not sure if this is needed anymore as TableForm was shown
to be lacking various features such as indexing and taking
transpose. No other candidates are being considered at the moment.

This PR is introduced to avoid these changes to be forgotten. We can
close it later if this is definitely not needed or it bit rots.

@cbm755
Copy link
Collaborator

cbm755 commented Sep 13, 2022

I force-pushed this onto top of the latest Array_not_Matrix

Add more 2D sym functions to abstract over the idea of 2D sym so that
we can choose to represent non-Matrix 2D sym to be something other
than an Array in the future. For example, we could use TableForm.

WIP: This is incomplete. More functions need to use these 2D sym
functions. Not sure if this is needed anymore as TableForm was shown
to be lacking various features such as indexing and taking
transpose. No other candidates are being considered at the moment.

* inst/private/{python_header.py,python_ipc_native.m}: Add new 2D sym
functions 'is_2d_sym', 'is_matrix', 'is_non_matrix_2d_sym',
'list_from_2d_sym' and 'shape_of_2d_sym'.
* inst/@sym/private/mat_rclist_{access,asgn}.m: Use them.
* inst/@sym/{transpose.m,vertcat.m}: Use them.
@cbm755
Copy link
Collaborator

cbm755 commented Sep 13, 2022

I cherry-picked a one of the commits out of here into #1194.

@cbm755 cbm755 closed this Sep 13, 2022
@cbm755 cbm755 reopened this Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants