aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Sebastien Boisvert <seb@boisvert.info>2020-06-09 18:29:13 -0400
committerGravatar Sebastien Boisvert <seb@boisvert.info>2020-06-11 23:49:49 +0000
commit6228f27234ca84545e711fb27b7850f6829af3d9 (patch)
treeb3f9c880d19e21ac64a27c046c2a6d7f5bb359c8
parent39cbd6578fbf3a98d8a213c8ec3f5147557d065e (diff)
Fix #1818: SparseLU: add methods nnzL() and nnzU()
Now this compiles without errors: $ clang++ -I ../../ test_sparseLU.cpp -std=c++03
-rw-r--r--Eigen/src/SparseLU/SparseLU.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/SparseLU/SparseLU.h b/Eigen/src/SparseLU/SparseLU.h
index 090993adc..1e7116c98 100644
--- a/Eigen/src/SparseLU/SparseLU.h
+++ b/Eigen/src/SparseLU/SparseLU.h
@@ -355,6 +355,9 @@ class SparseLU : public SparseSolverBase<SparseLU<_MatrixType,_OrderingType> >,
return (m_detPermR * m_detPermC) > 0 ? det : -det;
}
+ Index nnzL() const { return m_nnzL; };
+ Index nnzU() const { return m_nnzU; };
+
protected:
// Functions
void initperfvalues()