From 6228f27234ca84545e711fb27b7850f6829af3d9 Mon Sep 17 00:00:00 2001 From: Sebastien Boisvert Date: Tue, 9 Jun 2020 18:29:13 -0400 Subject: Fix #1818: SparseLU: add methods nnzL() and nnzU() Now this compiles without errors: $ clang++ -I ../../ test_sparseLU.cpp -std=c++03 --- Eigen/src/SparseLU/SparseLU.h | 3 +++ 1 file changed, 3 insertions(+) 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 >, return (m_detPermR * m_detPermC) > 0 ? det : -det; } + Index nnzL() const { return m_nnzL; }; + Index nnzU() const { return m_nnzU; }; + protected: // Functions void initperfvalues() -- cgit v1.2.3