# HG changeset patch # User Rik # Date 1630953961 25200 # Node ID bb9da37c0a8bea580161d0d4dbc8bf3fa00ae268 # Parent 8dd5da409418984d1549ca5a49872bd7ddbd9047 maint: use "m_" prefix for member variables in class sparse_chol. * sparse-chol.cc, sparse-chol.h: Use "m_" prefix for member variables in class sparse_chol. diff -r 8dd5da409418 -r bb9da37c0a8b liboctave/numeric/sparse-chol.cc --- a/liboctave/numeric/sparse-chol.cc Mon Sep 06 11:40:04 2021 -0700 +++ b/liboctave/numeric/sparse-chol.cc Mon Sep 06 11:46:01 2021 -0700 @@ -379,13 +379,13 @@ template sparse_chol::sparse_chol (void) - : rep (new typename sparse_chol::sparse_chol_rep ()) + : m_rep (new typename sparse_chol::sparse_chol_rep ()) { } template sparse_chol::sparse_chol (const chol_type& a, bool natural, bool force) - : rep (new typename + : m_rep (new typename sparse_chol::sparse_chol_rep (a, natural, force)) { } @@ -393,7 +393,7 @@ sparse_chol::sparse_chol (const chol_type& a, octave_idx_type& info, bool natural, bool force) - : rep (new typename + : m_rep (new typename sparse_chol::sparse_chol_rep (a, info, natural, force)) { } @@ -401,14 +401,14 @@ sparse_chol::sparse_chol (const chol_type& a, octave_idx_type& info, bool natural) - : rep (new typename + : m_rep (new typename sparse_chol::sparse_chol_rep (a, info, natural, false)) { } template sparse_chol::sparse_chol (const chol_type& a, octave_idx_type& info) - : rep (new typename + : m_rep (new typename sparse_chol::sparse_chol_rep (a, info, false, false)) { } @@ -418,7 +418,7 @@ { #if defined (HAVE_CHOLMOD) - cholmod_sparse *m = rep->L (); + cholmod_sparse *m = m_rep->L (); octave_idx_type nc = m->ncol; octave_idx_type nnz = m->nzmax; @@ -447,35 +447,35 @@ octave_idx_type sparse_chol::P (void) const { - return rep->P (); + return m_rep->P (); } template RowVector sparse_chol::perm (void) const { - return rep->perm (); + return m_rep->perm (); } template SparseMatrix sparse_chol::Q (void) const { - return rep->Q (); + return m_rep->Q (); } template bool sparse_chol::is_positive_definite (void) const { - return rep->is_positive_definite (); + return m_rep->is_positive_definite (); } template double sparse_chol::rcond (void) const { - return rep->rcond (); + return m_rep->rcond (); } template @@ -486,9 +486,9 @@ #if defined (HAVE_CHOLMOD) - cholmod_sparse *m = rep->L (); + cholmod_sparse *m = m_rep->L (); octave_idx_type n = m->ncol; - RowVector m_perm = rep->perm (); + RowVector m_perm = m_rep->perm (); double rcond2; octave_idx_type info; MatrixType mattype (MatrixType::Upper); @@ -551,9 +551,9 @@ OCTAVE_API sparse_chol::sparse_chol (const SparseComplexMatrix& a, octave_idx_type& info) - : rep (new sparse_chol::sparse_chol_rep (a, info, - true, - false)) + : m_rep (new sparse_chol::sparse_chol_rep (a, info, + true, + false)) { } // Instantiations we need. diff -r 8dd5da409418 -r bb9da37c0a8b liboctave/numeric/sparse-chol.h --- a/liboctave/numeric/sparse-chol.h Mon Sep 06 11:40:04 2021 -0700 +++ b/liboctave/numeric/sparse-chol.h Mon Sep 06 11:46:01 2021 -0700 @@ -94,7 +94,7 @@ private: - std::shared_ptr rep; + std::shared_ptr m_rep; }; template