Mercurial > hg > octave-lyh
diff liboctave/boolNDArray.cc @ 9227:8145f2255276
use explicit template qualifs to please Intel C++ and MSVC++
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 02 Mar 2009 08:07:48 +0100 |
parents | eb63fbe60fab |
children | e5f7aee2ab8c |
line wrap: on
line diff
--- a/liboctave/boolNDArray.cc +++ b/liboctave/boolNDArray.cc @@ -50,27 +50,27 @@ boolNDArray boolNDArray::all (int dim) const { - return do_mx_red_op<boolNDArray> (*this, dim, mx_inline_all); + return do_mx_red_op<boolNDArray, bool> (*this, dim, mx_inline_all); } boolNDArray boolNDArray::any (int dim) const { - return do_mx_red_op<boolNDArray> (*this, dim, mx_inline_any); + return do_mx_red_op<boolNDArray, bool> (*this, dim, mx_inline_any); } NDArray boolNDArray::sum (int dim) const { // NOTE: going via octave_idx_type is faster even though it requires a conversion. - return do_mx_red_op<Array<octave_idx_type> > (*this, dim, mx_inline_count); + return do_mx_red_op<Array<octave_idx_type> , bool> (*this, dim, mx_inline_count); } NDArray boolNDArray::cumsum (int dim) const { // NOTE: going via octave_idx_type is faster even though it requires a conversion. - return do_mx_cum_op<Array<octave_idx_type> > (*this, dim, mx_inline_cumcount); + return do_mx_cum_op<Array<octave_idx_type> , bool> (*this, dim, mx_inline_cumcount); } boolNDArray