# HG changeset patch # User Rik # Date 1630297123 25200 # Node ID abf2e77cca42b4a47f2e3cb63fa92eba273f7170 # Parent 97378503ee0ac5bbda2a8e6230eb4907ebd72a13 maint: use "m_" prefix for member variables in class qrp. * qrp.cc, qrp.h: use "m_" prefix for member variables in class qrp. diff -r 97378503ee0a -r abf2e77cca42 liboctave/numeric/qrp.cc --- a/liboctave/numeric/qrp.cc Sun Aug 29 21:18:32 2021 -0700 +++ b/liboctave/numeric/qrp.cc Sun Aug 29 21:18:43 2021 -0700 @@ -97,7 +97,7 @@ // indices only!) jpvt -= static_cast (1); - p = PermMatrix (jpvt, true); + m_p = PermMatrix (jpvt, true); form (n, afact, tau, qr_type); } @@ -105,7 +105,7 @@ template <> OCTAVE_API qrp::qrp (const Matrix& a, type qr_type) - : qr (), p () + : qr (), m_p () { init (a, qr_type); } @@ -115,7 +115,7 @@ RowVector qrp::Pvec (void) const { - Array pa (p.col_perm_vec ()); + Array pa (m_p.col_perm_vec ()); RowVector pv (MArray (pa) + 1.0); return pv; } @@ -168,7 +168,7 @@ // indices only!) jpvt -= static_cast (1); - p = PermMatrix (jpvt, true); + m_p = PermMatrix (jpvt, true); form (n, afact, tau, qr_type); } @@ -176,7 +176,7 @@ template <> OCTAVE_API qrp::qrp (const FloatMatrix& a, type qr_type) - : qr (), p () + : qr (), m_p () { init (a, qr_type); } @@ -186,7 +186,7 @@ FloatRowVector qrp::Pvec (void) const { - Array pa (p.col_perm_vec ()); + Array pa (m_p.col_perm_vec ()); FloatRowVector pv (MArray (pa) + 1.0f); return pv; } @@ -247,7 +247,7 @@ // indices only!) jpvt -= static_cast (1); - p = PermMatrix (jpvt, true); + m_p = PermMatrix (jpvt, true); form (n, afact, tau, qr_type); } @@ -255,7 +255,7 @@ template <> OCTAVE_API qrp::qrp (const ComplexMatrix& a, type qr_type) - : qr (), p () + : qr (), m_p () { init (a, qr_type); } @@ -265,7 +265,7 @@ RowVector qrp::Pvec (void) const { - Array pa (p.col_perm_vec ()); + Array pa (m_p.col_perm_vec ()); RowVector pv (MArray (pa) + 1.0); return pv; } @@ -326,7 +326,7 @@ // indices only!) jpvt -= static_cast (1); - p = PermMatrix (jpvt, true); + m_p = PermMatrix (jpvt, true); form (n, afact, tau, qr_type); } @@ -334,7 +334,7 @@ template <> OCTAVE_API qrp::qrp (const FloatComplexMatrix& a, type qr_type) - : qr (), p () + : qr (), m_p () { init (a, qr_type); } @@ -344,7 +344,7 @@ FloatRowVector qrp::Pvec (void) const { - Array pa (p.col_perm_vec ()); + Array pa (m_p.col_perm_vec ()); FloatRowVector pv (MArray (pa) + 1.0f); return pv; } diff -r 97378503ee0a -r abf2e77cca42 liboctave/numeric/qrp.h --- a/liboctave/numeric/qrp.h Sun Aug 29 21:18:32 2021 -0700 +++ b/liboctave/numeric/qrp.h Sun Aug 29 21:18:43 2021 -0700 @@ -45,18 +45,18 @@ typedef typename qr::type type; - qrp (void) : qr (), p () { } + qrp (void) : qr (), m_p () { } OCTAVE_API qrp (const T&, type = qr::std); - qrp (const qrp& a) : qr (a), p (a.p) { } + qrp (const qrp& a) : qr (a), m_p (a.m_p) { } qrp& operator = (const qrp& a) { if (this != &a) { qr::operator = (a); - p = a.p; + m_p = a.m_p; } return *this; @@ -66,13 +66,13 @@ OCTAVE_API void init (const T&, type = qr::std); - PermMatrix P (void) const { return p; } + PermMatrix P (void) const { return m_p; } OCTAVE_API RV_T Pvec (void) const; private: - PermMatrix p; + PermMatrix m_p; }; } }