File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Analysis/Presburger Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ std::vector<QuasiPolynomial> getBinomialCoefficients(QuasiPolynomial n,
640
640
unsigned numParams = n.getNumInputs ();
641
641
std::vector<QuasiPolynomial> coefficients;
642
642
coefficients.reserve (r + 1 );
643
- coefficients.push_back ( QuasiPolynomial ( numParams, 1 ) );
643
+ coefficients.emplace_back ( numParams, 1 );
644
644
for (unsigned j = 1 ; j <= r; ++j)
645
645
// We use the recursive formula for binomial coefficients here and below.
646
646
coefficients.push_back (
@@ -655,7 +655,7 @@ std::vector<QuasiPolynomial> getBinomialCoefficients(QuasiPolynomial n,
655
655
std::vector<Fraction> getBinomialCoefficients (Fraction n, Fraction r) {
656
656
std::vector<Fraction> coefficients;
657
657
coefficients.reserve ((int64_t )floor (r));
658
- coefficients.push_back (1 );
658
+ coefficients.emplace_back (1 );
659
659
for (unsigned j = 1 ; j <= r; ++j)
660
660
coefficients.push_back (coefficients[j - 1 ] * (n - (j - 1 )) / (j));
661
661
return coefficients;
You can’t perform that action at this time.
0 commit comments