diff options
author | Sebastien Boisvert <seb@boisvert.info> | 2020-06-09 18:29:13 -0400 |
---|---|---|
committer | Sebastien Boisvert <seb@boisvert.info> | 2020-06-11 23:49:49 +0000 |
commit | 6228f27234ca84545e711fb27b7850f6829af3d9 (patch) | |
tree | b3f9c880d19e21ac64a27c046c2a6d7f5bb359c8 | |
parent | 39cbd6578fbf3a98d8a213c8ec3f5147557d065e (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.h | 3 |
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() |