Mercurial > hg > octave-nkf
diff liboctave/array/fCNDArray.h @ 18890:8cc66f091584
Add "native" option to prod() (bug #40349).
* data.cc (Fprod): Rewrite docstring to mention new "native", "double" options.
Borrow code from Fsum replacing sum with prod. Add %!tests for new behavior.
* fCNDArray.h (dprod): New function prototype.
* fCNDArray.cc (FloatComplexNDArray::dprod): New function.
* fNDArray.h (dprod): New function prototype.
* fNDArray.cc (FloatNDArray::dprod): New function.
* intNDArray.h (prod): New function prototype.
* intNDArray.cc (intNDArray<T>::prod): New function.
* mx-inlines.cc (op_dble_prod): New inline functions for implementing double
product.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 04 May 2014 16:08:46 -0700 |
parents | ebb3ef964372 |
children | d0c73e23a505 |
line wrap: on
line diff
--- a/liboctave/array/fCNDArray.h +++ b/liboctave/array/fCNDArray.h @@ -83,6 +83,7 @@ FloatComplexNDArray cumprod (int dim = -1) const; FloatComplexNDArray cumsum (int dim = -1) const; FloatComplexNDArray prod (int dim = -1) const; + ComplexNDArray dprod (int dim = -1) const; FloatComplexNDArray sum (int dim = -1) const; ComplexNDArray dsum (int dim = -1) const; FloatComplexNDArray sumsq (int dim = -1) const;