comparison libinterp/octave-value/ov.h @ 20229: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 0cf104d3371f
children 40ed9b46a800
comparison
equal deleted inserted replaced
20228:00cf2847355d 20229:5dfaaaae784f
481 bool all_zero_dims (void) const { return dims ().all_zero (); } 481 bool all_zero_dims (void) const { return dims ().all_zero (); }
482 482
483 octave_idx_type numel (void) const 483 octave_idx_type numel (void) const
484 { return rep->numel (); } 484 { return rep->numel (); }
485 485
486 octave_idx_type capacity (void) const 486 GCC_ATTR_DEPRECATED octave_idx_type capacity (void) const
487 { return rep->capacity (); } 487 { return rep->numel (); }
488 488
489 size_t byte_size (void) const 489 size_t byte_size (void) const
490 { return rep->byte_size (); } 490 { return rep->byte_size (); }
491 491
492 octave_idx_type nnz (void) const { return rep->nnz (); } 492 octave_idx_type nnz (void) const { return rep->nnz (); }