comparison liboctave/array/Array.h @ 27216:823b4bcf79fc

unless necessary for formatting or code, use ' instead of ` Files affected: doc/interpreter/TODO, etc/HACKING.md, examples/code/oregonator.cc, examples/code/oregonator.m, libgui/graphics/ObjectFactory.cc, libinterp/corefcn/defun-dld.h, libinterp/corefcn/defun.h, libinterp/corefcn/graphics.cc, libinterp/corefcn/ls-hdf5.cc, libinterp/corefcn/oct-stream.cc, libinterp/octave-value/cdef-class.cc, libinterp/octave-value/cdef-manager.cc, libinterp/octave-value/cdef-method.cc, libinterp/octave-value/cdef-object.cc, libinterp/octave-value/cdef-package.cc, libinterp/octave-value/cdef-property.cc, libinterp/octave-value/cdef-utils.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-java.cc, libinterp/octave-value/ov.h, libinterp/parse-tree/oct-parse.yy, liboctave/array/Array.h, liboctave/numeric/bsxfun.h, liboctave/util/oct-rl-hist.c, scripts/help/__unimplemented__.m, scripts/image/imformats.m, scripts/image/imwrite.m, scripts/image/private/__imread__.m, scripts/image/private/__imwrite__.m, scripts/java/org/octave/Matrix.java, scripts/linear-algebra/condeig.m, scripts/miscellaneous/inputParser.m, scripts/miscellaneous/publish.m, scripts/pkg/private/configure_make.m, scripts/special-matrix/gallery.m, scripts/web/weboptions.m, test/classdef/classdef.tst.
author John W. Eaton <jwe@octave.org>
date Wed, 26 Jun 2019 15:47:03 -0400
parents 7f5bbd5ac5a5
children 7335ebd4c798
comparison
equal deleted inserted replaced
27215:274766cae722 27216:823b4bcf79fc
101 //! vectors and square matrices. The alternatives numel(), rows(), 101 //! vectors and square matrices. The alternatives numel(), rows(),
102 //! columns(), and size(d) are more explict and recommended. 102 //! columns(), and size(d) are more explict and recommended.
103 //! 103 //!
104 //! ### size_type 104 //! ### size_type
105 //! 105 //!
106 //! Array::size_type is `octave_idx_type` which is a typedef for `int` 106 //! Array::size_type is 'octave_idx_type' which is a typedef for 'int'
107 //! or `long int`, depending whether Octave was configured for 64-bit 107 //! or 'long int', depending whether Octave was configured for 64-bit
108 //! indexing. 108 //! indexing.
109 //! 109 //!
110 //! This is a signed integer which may cause problems when mixed with 110 //! This is a signed integer which may cause problems when mixed with
111 //! STL containers. The reason is that Octave interacts with Fortran 111 //! STL containers. The reason is that Octave interacts with Fortran
112 //! routines, providing an interface many Fortran numeric libraries. 112 //! routines, providing an interface many Fortran numeric libraries.
396 //! Size of the specified dimension. 396 //! Size of the specified dimension.
397 //! 397 //!
398 //! Dimensions beyond the Array number of dimensions return 1 as 398 //! Dimensions beyond the Array number of dimensions return 1 as
399 //! those are implicit singleton dimensions. 399 //! those are implicit singleton dimensions.
400 //! 400 //!
401 //! Equivalent to Octave's `size (A, DIM)` 401 //! Equivalent to Octave's 'size (A, DIM)'
402 402
403 size_type size (const size_type d) const 403 size_type size (const size_type d) const
404 { 404 {
405 // Should we throw for negative values? 405 // Should we throw for negative values?
406 // Should >= ndims () be handled by dim_vector operator() instead ? 406 // Should >= ndims () be handled by dim_vector operator() instead ?