Mercurial > octave
view liboctave/octave.in.pc @ 29927:6a8642d310c8
style fixes for Sparse<T> class
* Sparse.h, Sparse.cc:
(SparseRep::m_data): Rename from m_d. Change all uses.
(SparseRep::m_ridx) Rename form m_r. Change all uses.
(SparseRep::m_cidx): Rename from m_c. Change all uses.
(SparseRep::m_nzmax): Rename from m_nzmx. Change all uses.
Change other instances of nzmx to be nzmax.
(SparseRep::elem, SparseRep::celem): Rename function parameters to r
and c from _r and _c.
(SparseRep::operator = (const Sparse_rep&)): Tag as deleted instead of
defining as private.
(SparseRep::nzmax): New function. Change all uses of length to mzmax
and comment that nzmax is to be preferred over length.
(SparseRep::rows, SparseRep::cols, SparseRep::columns): New functions.
(class Sparse<T>): Make data members protected instead of public.
(SparseRep): Declare Sparse class as friend.
(SparseRep): New constructors that accept data elements directly.
(Sparse<T>::Sparse (const Sparse<U>&)): Simplify using new SparseRep
constructor.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 29 Jul 2021 20:43:13 -0400 |
parents | 26070f36f1e7 |
children |
line wrap: on
line source
Name: @PACKAGE_NAME@ Description: C++ interface to GNU Octave underlying library. URL: https://www.octave.org Version: @PACKAGE_VERSION@ Requires: Requires.private: Libs: -L@octlibdir@ @LIBOCTAVE@ Libs.private: @LIBOCTAVE_LINK_DEPS@ Cflags: -I@octincludedir@/..