[clang-tools-extra] [MLIR][Presburger] Implement matrix inverse (PR #67382)

Arjun P via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 09:17:19 PDT 2023


================
@@ -432,4 +432,138 @@ MPInt IntMatrix::normalizeRow(unsigned row, unsigned cols) {
 
 MPInt IntMatrix::normalizeRow(unsigned row) {
   return normalizeRow(row, getNumColumns());
+}
+
+MPInt IntMatrix::determinant() {
+  unsigned r = getNumRows();
+  unsigned c = getNumColumns();
----------------
Superty wrote:

if they are already member variables in Matrix, you can use them directly

https://github.com/llvm/llvm-project/pull/67382


More information about the cfe-commits mailing list