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

[SYSTEMDS-2925] Federated left indexing #1219

Closed
wants to merge 5 commits into from

Conversation

OlgaOvcharenko
Copy link
Contributor

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).

@OlgaOvcharenko OlgaOvcharenko marked this pull request as ready for review April 9, 2021 12:17
@OlgaOvcharenko OlgaOvcharenko changed the title [WIP][SYSTEMDS-2925] Federated left indexing [SYSTEMDS-2925] Federated left indexing Apr 9, 2021
Copy link
Contributor

@Baunsgaard Baunsgaard left a 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);
Copy link
Contributor

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
Copy link
Contributor

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 }

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants