forked from daphne-eu/daphne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Treatment of non-variadic operands after variadic operands.
- There was a confusion of the index of the variadic ODS operand (i) and the index of its first occurrences (idx). - Added a test case which triggered an error before this fix.
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Order a matrix by three columns. | ||
|
||
// This test case was added to test the correct treatment of | ||
// the non-variadic last parameter (returnIdxs) after two | ||
// longer variadic parameters (colIdxs, ascs). There used to | ||
// be a bug that was only triggered when an unproblematic (res1) | ||
// and a problematic (res2) use were combined in the same | ||
// DaphneDSL script. | ||
|
||
X = reshape(seq(1, 6, 1), 2, 3); | ||
res1 = order(X, 0, 1, false, false, false); | ||
res2 = order(X, 0, 1, 2, false, false, false, false); | ||
print(res1); | ||
print(res2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DenseMatrix(2x3, int64_t) | ||
4 5 6 | ||
1 2 3 | ||
DenseMatrix(2x3, int64_t) | ||
4 5 6 | ||
1 2 3 |