Skip to content

Commit

Permalink
Insert more code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Feb 28, 2024
1 parent fc45fc9 commit 8593a87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src_matrix/MAT_MatrixInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ GCD_dot<T> ComputeGcdDot(MyVector<T> const& x) {
return {std::move(V), gcd};
}

template<typename T>
GCD_dot<T> PositivityNormalizeGcdDot(GCD_dot<T> const& x) {
if (x.gcd > 0) {
return x;
}
return {-x.V, -x.gcd};
}


// This is the return type for the second extended GCD computations
// In input a list of entries x=(x_0, ...., x_m)
// In return we have:
Expand Down

0 comments on commit 8593a87

Please sign in to comment.