Mercurial > hg > octave-nkf
diff liboctave/Array3.h @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | e35b034d3523 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/liboctave/Array3.h +++ b/liboctave/Array3.h @@ -40,24 +40,24 @@ { protected: - static int get_size (int r, int c, int p) + static octave_idx_type get_size (octave_idx_type r, octave_idx_type c, octave_idx_type p) { return Array<T>::get_size (r, c, p); } - Array3 (T *d, int r, int c, int p) : Array<T> (d, dim_vector (r, c, p)) { } + Array3 (T *d, octave_idx_type r, octave_idx_type c, octave_idx_type p) : Array<T> (d, dim_vector (r, c, p)) { } public: Array3 (void) : Array<T> (dim_vector (0, 0, 0)) { } - Array3 (int r, int c, int p) : Array<T> (dim_vector (r, c, p)) { } + Array3 (octave_idx_type r, octave_idx_type c, octave_idx_type p) : Array<T> (dim_vector (r, c, p)) { } - Array3 (int r, int c, int p, const T& val) + Array3 (octave_idx_type r, octave_idx_type c, octave_idx_type p, const T& val) : Array<T> (dim_vector (r, c, p), val) { } Array3 (const Array3<T>& a) : Array<T> (a, a.dims ()) { } - Array3 (const Array<T>& a, int r, int c, int p) + Array3 (const Array<T>& a, octave_idx_type r, octave_idx_type c, octave_idx_type p) : Array<T> (a, dim_vector (r, c, p)) { } ~Array3 (void) { } @@ -70,9 +70,9 @@ return *this; } - void resize (int r, int c, int p) { this->resize_no_fill (r, c, p); } + void resize (octave_idx_type r, octave_idx_type c, octave_idx_type p) { this->resize_no_fill (r, c, p); } - void resize (int r, int c, int p, const T& val) + void resize (octave_idx_type r, octave_idx_type c, octave_idx_type p, const T& val) { this->resize_and_fill (r, c, p, val); } };