Mercurial > hg > octave-lyh
diff liboctave/MArray.h @ 8934:c2099a4d12ea
partially optimize accumarray
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 09 Mar 2009 10:59:19 +0100 |
parents | eb63fbe60fab |
children | 66970dd627f6 |
line wrap: on
line diff
--- a/liboctave/MArray.h +++ b/liboctave/MArray.h @@ -92,6 +92,12 @@ return Array<T>::template map<U> (fcn); } + // Performs indexed accumulative addition. + + void idx_add (const idx_vector& idx, T val); + + void idx_add (const idx_vector& idx, const MArray<T>& vals); + // Currently, the OPS functions don't need to be friends, but that // may change.