Mercurial > octave
diff liboctave/fNDArray.cc @ 9721:192d94cff6c1
improve sum & implement the 'extra' option, refactor some code
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 13 Oct 2009 12:22:50 +0200 |
parents | a9b37bae1802 |
children | b4fdfee405b5 |
line wrap: on
line diff
--- a/liboctave/fNDArray.cc Mon Oct 12 12:13:22 2009 -0700 +++ b/liboctave/fNDArray.cc Tue Oct 13 12:22:50 2009 +0200 @@ -683,6 +683,12 @@ return do_mx_red_op<FloatNDArray, float> (*this, dim, mx_inline_sum); } +NDArray +FloatNDArray::dsum (int dim) const +{ + return do_mx_red_op<NDArray, float> (*this, dim, mx_inline_dsum); +} + FloatNDArray FloatNDArray::sumsq (int dim) const {