E52F Implement PartialEq for array == &array and &array == array by bluss · Pull Request #958 · rust-ndarray/ndarray · GitHub
[go: up one dir, main page]

Skip to content

Implement PartialEq for array == &array and &array == array#958

Merged
bluss merged 1 commit intomasterfrom
partial-eq-with-reference
Mar 27, 2021
Merged

Implement PartialEq for array == &array and &array == array#958
bluss merged 1 commit intomasterfrom
partial-eq-with-reference

Conversation

@bluss
Copy link
Member
@bluss bluss commented Mar 27, 2021

This adds missing implementations - so that we can compare a == &b and
&a == b where a and b are arrays or array views.

The change to the windows test shows why this is beneficial - no need to
create views from &Array etc just to do a comparison.

Type inference complications should be negligible/permissible in this case.

This adds missing implementations - so that we can compare a == &b and
&a == b where a and b are arrays or array views.

The change to the windows test shows why this is beneficial - no need to
create views from &Array etc just to do a comparison.
@bluss bluss merged commit e5d4bf7 into master Mar 27, 2021
@bluss bluss deleted the partial-eq-with-reference branch March 27, 2021 14:50
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.

1 participant

0