comparison liboctave/ArrayN.h @ 4765:e941e1470d7b

[project @ 2004-02-16 05:56:50 by jwe]
author jwe
date Mon, 16 Feb 2004 05:56:51 +0000
parents bd2067547b40
children bd043a433918
comparison
equal deleted inserted replaced
4764:86c748d5f0af 4765:e941e1470d7b
94 { 94 {
95 Array<T>::insert (a, dv); 95 Array<T>::insert (a, dv);
96 return *this; 96 return *this;
97 } 97 }
98 98
99 ArrayN<T>& insert (const ArrayN<T>& a, int r, int c)
100 {
101 Array<T>::insert (a, r, c);
102 return *this;
103 }
104
99 ArrayN<T> index (idx_vector& i, int resize_ok = 0, 105 ArrayN<T> index (idx_vector& i, int resize_ok = 0,
100 const T& rfv = resize_fill_value (T ())) const 106 const T& rfv = resize_fill_value (T ())) const
101 { 107 {
102 Array<T> tmp = Array<T>::index (i, resize_ok, rfv); 108 Array<T> tmp = Array<T>::index (i, resize_ok, rfv);
103 return ArrayN<T> (tmp, tmp.dims ()); 109 return ArrayN<T> (tmp, tmp.dims ());