-
Notifications
You must be signed in to change notification settings - Fork 67
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
Permutation example #1195
base: main
Are you sure you want to change the base?
Permutation example #1195
Conversation
87131b9
to
902a3a0
Compare
}; | ||
|
||
let compress_selected_exprs: int, expr, expr, expr, expr[] -> expr = |id, alpha, beta, sel, exprs| | ||
sel * (compress_columns(alpha, exprs) + id + beta - 1) + 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.
Where does the ID come from? We don't really need it, do we? I think it's a way to share the accumulator between several permutations, which we're not doing here?
902a3a0
to
1ec215f
Compare
}; | ||
|
||
let compress_selected_exprs: expr, expr, expr, expr[] -> expr = |alpha, beta, sel, exprs| | ||
sel * (compress_columns(alpha, exprs) + beta - 1) + 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.
sel * (compress_columns(alpha, exprs) + beta - 1) + 1; | |
sel * (beta - compress_columns(alpha, exprs) - 1) + 1; |
I think both is sound, but this makes it clear we're evaluating
Wondering if this PR is superseded, but it adds the |
is it worth it to revive it? |
No description provided.