comparison liboctave/Array3.h @ 10312:cbc402e64d83

untabify liboctave header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:14:48 -0500
parents 4c0cdbe0acca
children 12884915a8e4
comparison
equal deleted inserted replaced
10311:a217e1d74353 10312:cbc402e64d83
61 ~Array3 (void) { } 61 ~Array3 (void) { }
62 62
63 Array3<T>& operator = (const Array3<T>& a) 63 Array3<T>& operator = (const Array3<T>& a)
64 { 64 {
65 if (this != &a) 65 if (this != &a)
66 Array<T>::operator = (a); 66 Array<T>::operator = (a);
67 67
68 return *this; 68 return *this;
69 } 69 }
70 70
71 void resize (octave_idx_type r, octave_idx_type c, octave_idx_type p) 71 void resize (octave_idx_type r, octave_idx_type c, octave_idx_type p)
79 Array<T> tmp = Array<T>::sort (dim, mode); 79 Array<T> tmp = Array<T>::sort (dim, mode);
80 return Array3<T> (tmp, tmp.rows (), tmp.columns (), tmp.pages ()); 80 return Array3<T> (tmp, tmp.rows (), tmp.columns (), tmp.pages ());
81 } 81 }
82 82
83 Array3<T> sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, 83 Array3<T> sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0,
84 sortmode mode = ASCENDING) const 84 sortmode mode = ASCENDING) const
85 { 85 {
86 Array<T> tmp = Array<T>::sort (sidx, dim, mode); 86 Array<T> tmp = Array<T>::sort (sidx, dim, mode);
87 return Array3<T> (tmp, tmp.rows (), tmp.columns (), tmp.pages ()); 87 return Array3<T> (tmp, tmp.rows (), tmp.columns (), tmp.pages ());
88 } 88 }
89 }; 89 };