[Mlir-commits] [mlir] [MLIR][Presburger] Add Gram-Schmidt (PR #70843)
Arjun P
llvmlistbot at llvm.org
Thu Nov 2 09:18:38 PDT 2023
================
@@ -520,3 +520,12 @@ SmallVector<int64_t, 8> presburger::getInt64Vec(ArrayRef<MPInt> range) {
std::transform(range.begin(), range.end(), result.begin(), int64FromMPInt);
return result;
}
+
+Fraction presburger::dotProduct(MutableArrayRef<Fraction> a,
+ MutableArrayRef<Fraction> b) {
+ assert(a.size() == b.size() && "Dot product of two unequal vectors!");
----------------
Superty wrote:
"Dot product is only valid for vectors of equal sizes!"
(not equal vectors, and try to write full sentences)
https://github.com/llvm/llvm-project/pull/70843
More information about the Mlir-commits
mailing list