-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add MatrixRef
to take a sub-matrix from an existing Matrix
#934
Conversation
cscs-ci run |
cscs-ci run |
5729b2a
to
d17c9a1
Compare
cscs-ci run |
cscs-ci run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cscs-ci run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would merge this PR and start using it. In this way we can fully realize if the API is ok or need tweaking.
But I would move MatrixRef
to internal
namespace, and move back in a later PR when we are confident about the API.
…stributions and sub-matrices, respectively
7813c7c
to
0da1cd0
Compare
cscs-ci run |
This adds a
MatrixRef
class which takes an existingMatrix
, offset, and size to give sender access to the sub-distribution defined by offset and size. At least for this PRMatrixRef
will stay a separate type. It's not clear to me how to cleanly makeMatrixRef
andMatrix
the same type without ugliness in the implementation, and without confusing the guarantees that the types give.