Mercurial > octave
diff liboctave/numeric/schur.h @ 30060:ae47678c76e8
maint: use "m_" prefix for member variables in class schur.
* schur.cc, schur.h: use "m_" prefix for member variables in class schur.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 29 Aug 2021 19:43:48 -0700 |
parents | 7854d5752dd2 |
children | 1e277c6b6626 |
line wrap: on
line diff
--- a/liboctave/numeric/schur.h Sun Aug 29 19:43:04 2021 -0700 +++ b/liboctave/numeric/schur.h Sun Aug 29 19:43:48 2021 -0700 @@ -47,17 +47,17 @@ { public: - schur (void) : schur_mat (), unitary_mat () { } + schur (void) : m_schur_mat (), m_unitary_mat () { } schur (const T& a, const std::string& ord, bool calc_unitary = true) - : schur_mat (), unitary_mat () + : m_schur_mat (), m_unitary_mat () { init (a, ord, calc_unitary); } schur (const T& a, const std::string& ord, octave_f77_int_type& info, bool calc_unitary = true) - : schur_mat (), unitary_mat () + : m_schur_mat (), m_unitary_mat () { info = init (a, ord, calc_unitary); } @@ -65,18 +65,18 @@ // This one should really be protected or private but we need it in // rsf2csf and I don't see how to make that function a friend of // this class. - schur (const T& s, const T& u) : schur_mat (s), unitary_mat (u) { } + schur (const T& s, const T& u) : m_schur_mat (s), m_unitary_mat (u) { } schur (const schur& a) - : schur_mat (a.schur_mat), unitary_mat (a.unitary_mat) + : m_schur_mat (a.m_schur_mat), m_unitary_mat (a.m_unitary_mat) { } schur& operator = (const schur& a) { if (this != &a) { - schur_mat = a.schur_mat; - unitary_mat = a.unitary_mat; + m_schur_mat = a.m_schur_mat; + m_unitary_mat = a.m_unitary_mat; } return *this; @@ -84,16 +84,16 @@ ~schur (void) = default; - T schur_matrix (void) const { return schur_mat; } + T schur_matrix (void) const { return m_schur_mat; } - T unitary_matrix (void) const { return unitary_mat; } + T unitary_matrix (void) const { return m_unitary_mat; } protected: private: - T schur_mat; - T unitary_mat; + T m_schur_mat; + T m_unitary_mat; OCTAVE_API octave_f77_int_type init (const T& a, const std::string& ord, bool calc_unitary);