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
[SYSTEMDS-2925] Federated left indexing #1219
Conversation
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, except a bit of formatting
if(in1.isFederated(FederationMap.FType.ROW) && (to = (prev + ren - rsn)) >= 0 && | ||
to < in2.getNumRows() && ixrange.rowStart <= re) { | ||
sliceIxs[i] = new int[] { prev, (int) to, 0, (int) in2.getNumColumns()-1}; | ||
prev = (int) (to + 1); |
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.
something has gone wrong with the indentation
instStrings[i] = modifyIndices(newIx, 4, 8); | ||
ranges[i] = range; | ||
from = Math.min(i, from); | ||
} else |
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.
code style specifies newline before else after a }
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.
Thanks for the review, fixed the formatting now
This PR adds federated left indexing, the simplest case when rhs matrix or frame is read and broadcast sliced (e.g. A[2:12, 3:4] = B).