Skip to content

Conversation

cbm755
Copy link
Collaborator

@cbm755 cbm755 commented Sep 2, 2022

Array linear indexing is not the same as Matrix linear indexing.
Fixes #1222.

Array linear indexing is not the same as Matrix linear indexing.
Fixes #1222.
@cbm755
Copy link
Collaborator Author

cbm755 commented Sep 4, 2022

@alexvong1995 OK to merge this and #1224 and #1227?

Comment on lines -244 to 246
def make_matrix_or_array(ls_of_ls, dbg_no_array=True):
def make_matrix_or_array(ls_of_ls, dbg_no_array=False):
# should be kept in sync with the same function
# defined in inst/private/python_ipc_native.m
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also change dbg_no_array from True to False in inst/private/python_ipc_native.m.

LGTM otherwise as this test (for @sym/and)

%!test
%! % array
%! w = [t t f f];
%! z = [t f t f];
%! assert (isequal (w & z, [t f f f]))

now passes!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in 37724d6

...with 'inst/private/python_header.py'.

Follow-up to 56bd719.

* inst/private/python_ipc_native.m: Disable it.
@alexvong243f alexvong243f merged commit a82cbd8 into Array_not_Matrix Sep 4, 2022
@cbm755 cbm755 deleted the 2dloop branch September 4, 2022 23:02
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

Successfully merging this pull request may close these issues.

2 participants