Skip to content

Commit

Permalink
fix: heuristically choose correct function for minors
Browse files Browse the repository at this point in the history
  • Loading branch information
steenpass committed Jan 9, 2013
1 parent 67a46ba commit 46a6eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Singular/MinorInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ ideal getMinorIdealHeuristic (const matrix mat, const int minorSize,
if (k != 0) /* this means, not all minors are requested */ l = true;
else
{ /* k == 0, i.e., all minors are requested */
int minorCount = 1;
long minorCount = 1;
for (int i = rowCount - minorSize + 1; i <= rowCount; i++)
minorCount = minorCount * i;
for (int i = 2; i <= minorSize; i++) minorCount = minorCount / i;
Expand Down

0 comments on commit 46a6eac

Please sign in to comment.