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

Fix VectorArrayOperator, generalize as_range/source_array #438

Merged
merged 2 commits into from Apr 19, 2018

Conversation

pmli
Copy link
Member

@pmli pmli commented Apr 18, 2018

These are the fixes from #433 which can be applied to master.

Copy link
Member

@sdrave sdrave left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

if not all(isinstance(op, VectorArrayOperator) and op.transposed == transposed for op in operators):
space_id = operators[0].space_id
if not all(isinstance(op, VectorArrayOperator) and op.transposed == transposed and op.space_id == space_id
for op in operators):
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to check if all source and range spaces are equal (==). In theory it is possible to assign the same space_id to different dimensional spaces (although probably a bad idea).

@pmli
Copy link
Member Author

pmli commented Apr 19, 2018

I made the change and rebased.

@sdrave sdrave merged commit db76bf8 into master Apr 19, 2018
@sdrave sdrave deleted the fix-vao-ara-asa branch April 19, 2018 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants