comparison liboctave/Array2.h @ 3933:f9ea3dcf58ee

[project @ 2002-05-15 03:21:00 by jwe]
author jwe
date Wed, 15 May 2002 03:21:01 +0000
parents e8627dc4bdf2
children 6e86256e9c54
comparison
equal deleted inserted replaced
3932:2e2e32198722 3933:f9ea3dcf58ee
172 bool is_square (void) const { return (d1 == d2); } 172 bool is_square (void) const { return (d1 == d2); }
173 173
174 Array2<T> transpose (void) const; 174 Array2<T> transpose (void) const;
175 175
176 #ifdef HEAVYWEIGHT_INDEXING 176 #ifdef HEAVYWEIGHT_INDEXING
177
177 void maybe_delete_elements (idx_vector& i); 178 void maybe_delete_elements (idx_vector& i);
178 179
179 void maybe_delete_elements (idx_vector& i, idx_vector& j); 180 void maybe_delete_elements (idx_vector& i, idx_vector& j);
180 181
181 Array2<T> value (void); 182 Array2<T> value (void);
182 183
183 Array2<T> index (idx_vector& i) const; 184 Array2<T> index (idx_vector& i, int resize_ok = 0,
184 185 const T& rfv = Array<T>::resize_fill_value ()) const;
185 Array2<T> index (idx_vector& i, idx_vector& j) const; 186
186 #endif 187 Array2<T> index (idx_vector& i, idx_vector& j, int resize_ok = 0,
188 const T& rfv = Array<T>::resize_fill_value ()) const;
189
190 #endif
191
192 void print_info (std::ostream& os, const std::string& prefix) const;
187 }; 193 };
188 194
189 template <class LT, class RT> 195 template <class LT, class RT>
190 int 196 int
191 assign (Array2<LT>& lhs, const Array2<RT>& rhs, const LT& resize_fill_value); 197 assign (Array2<LT>& lhs, const Array2<RT>& rhs, const LT& resize_fill_value);