Mercurial > hg > octave-nkf
comparison libinterp/octave-value/ov-base.h @ 20439:5dfaaaae784f
Deprecate Array::capacity() and Sparse::capacity() for numel() and nzmax().
* liboctave/array/Array.h (Array::capacity): deprecate for ::numel().
* liboctave/array/Sparse.h (Sparse::capacity): deprecate for ::nzmax().
Also move comments into doxygen docs.
* libinterp/corefcn/daspk.cc, libinterp/corefcn/dasrt.cc,
libinterp/corefcn/dassl.cc, libinterp/corefcn/jit-typeinfo.h,
libinterp/corefcn/quad.cc, libinterp/corefcn/variables.cc,
libinterp/octave-value/ov-base-sparse.h, libinterp/octave-value/ov-base.h,
libinterp/octave-value/ov.h, liboctave/array/Sparse.cc,
liboctave/numeric/DASPK.cc, liboctave/numeric/DASRT.cc,
liboctave/numeric/DASSL.cc, liboctave/numeric/LSODE.cc,
liboctave/numeric/Quad.cc, liboctave/numeric/base-de.h,
liboctave/numeric/base-min.h, liboctave/numeric/oct-rand.cc: replace use
of capacity by numel() or nzmax() as appropriate.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Sun, 24 May 2015 04:47:20 +0100 |
parents | 1f9ed81bd173 |
children | bfe66db8addb |
comparison
equal
deleted
inserted
replaced
20438:00cf2847355d | 20439:5dfaaaae784f |
---|---|
308 virtual int ndims (void) const | 308 virtual int ndims (void) const |
309 { return dims ().length (); } | 309 { return dims ().length (); } |
310 | 310 |
311 virtual octave_idx_type numel (void) const { return dims ().numel (); } | 311 virtual octave_idx_type numel (void) const { return dims ().numel (); } |
312 | 312 |
313 virtual octave_idx_type capacity (void) const { return numel (); } | 313 GCC_ATTR_DEPRECATED virtual octave_idx_type capacity (void) const |
314 { return numel (); } | |
314 | 315 |
315 virtual size_t byte_size (void) const { return 0; } | 316 virtual size_t byte_size (void) const { return 0; } |
316 | 317 |
317 virtual octave_idx_type nnz (void) const; | 318 virtual octave_idx_type nnz (void) const; |
318 | 319 |