Mercurial > hg > octave-nkf
comparison liboctave/intNDArray.cc @ 8777:724c0f46d9d4
implement cummin/cummax functions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 17 Feb 2009 11:26:29 +0100 |
parents | 9f7ce4bf7650 |
children | ea76466605ba |
comparison
equal
deleted
inserted
replaced
8776:d23c33ec6bd3 | 8777:724c0f46d9d4 |
---|---|
235 intNDArray<T>::min (ArrayN<octave_idx_type>& idx_arg, int dim) const | 235 intNDArray<T>::min (ArrayN<octave_idx_type>& idx_arg, int dim) const |
236 { | 236 { |
237 return do_mx_minmax_op<intNDArray<T> > (*this, idx_arg, dim, mx_inline_min); | 237 return do_mx_minmax_op<intNDArray<T> > (*this, idx_arg, dim, mx_inline_min); |
238 } | 238 } |
239 | 239 |
240 template <class T> | |
241 intNDArray<T> | |
242 intNDArray<T>::cummax (int dim) const | |
243 { | |
244 return do_mx_cumminmax_op<intNDArray<T> > (*this, dim, mx_inline_cummax); | |
245 } | |
246 | |
247 template <class T> | |
248 intNDArray<T> | |
249 intNDArray<T>::cummax (ArrayN<octave_idx_type>& idx_arg, int dim) const | |
250 { | |
251 return do_mx_cumminmax_op<intNDArray<T> > (*this, idx_arg, dim, mx_inline_cummax); | |
252 } | |
253 | |
254 template <class T> | |
255 intNDArray<T> | |
256 intNDArray<T>::cummin (int dim) const | |
257 { | |
258 return do_mx_cumminmax_op<intNDArray<T> > (*this, dim, mx_inline_cummin); | |
259 } | |
260 | |
261 template <class T> | |
262 intNDArray<T> | |
263 intNDArray<T>::cummin (ArrayN<octave_idx_type>& idx_arg, int dim) const | |
264 { | |
265 return do_mx_cumminmax_op<intNDArray<T> > (*this, idx_arg, dim, mx_inline_cummin); | |
266 } | |
267 | |
240 /* | 268 /* |
241 ;;; Local Variables: *** | 269 ;;; Local Variables: *** |
242 ;;; mode: C++ *** | 270 ;;; mode: C++ *** |
243 ;;; End: *** | 271 ;;; End: *** |
244 */ | 272 */ |