90 template <
typename T, T op (
typename ref_param<T>::type,
91 typename ref_param<T>::type)>
101 template <
typename T>
120 template <
typename T>
139 template <
typename T>
166 sdv(dim) = ddv(dim) = 0;
168 (*current_liboctave_error_handler) (
"accumdim: dimension mismatch");
171 const T *src = vals.
data ();
202 template <
typename T>
214 template <
typename T>
225 template <
typename T>
236 template <
typename T>
247 template <
typename T>
260 template <
typename T>
271 template <
typename T>
282 template <
typename T>
293 template <
typename T>
306 #define MARRAY_NDS_OP(OP, FN) \
307 template <typename T> \
309 operator OP (const MArray<T>& a, const T& s) \
311 return do_ms_binary_op<T, T, T> (a, s, FN); \
321 #define MARRAY_SND_OP(OP, FN) \
322 template <typename T> \
324 operator OP (const T& s, const MArray<T>& a) \
326 return do_sm_binary_op<T, T, T> (s, a, FN); \
336 #define MARRAY_NDND_OP(FCN, OP, FN) \
337 template <typename T> \
339 FCN (const MArray<T>& a, const MArray<T>& b) \
341 return do_mm_binary_op<T, T, T> (a, b, FN, FN, FN, #FCN); \
349 template <typename T>
356 template <
typename T>
MArray< T > & quotient_eq(MArray< T > &a, const MArray< T > &b)
#define MARRAY_NDS_OP(OP, FN)
MArray< T > operator-(const MArray< T > &a, const T &s)
MArray< T > & product_eq(MArray< T > &a, const MArray< T > &b)
MArray< T > quotient(const MArray< T > &a, const MArray< T > &b)
MArray< T > & operator*=(MArray< T > &a, const T &s)
MArray< T > & operator+=(MArray< T > &a, const T &s)
#define MARRAY_SND_OP(OP, FN)
MArray< T > & operator/=(MArray< T > &a, const T &s)
MArray< T > & operator-=(MArray< T > &a, const T &s)
MArray< T > product(const MArray< T > &a, const MArray< T > &b)
#define MARRAY_NDND_OP(FCN, OP, FN)
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
N Dimensional Array with copy-on-write semantics.
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
octave_idx_type numel(void) const
Number of elements in the array.
const T * data(void) const
Size of the specified dimension.
const dim_vector & dims(void) const
Return a const-reference so that dims ()(i) works efficiently.
int ndims(void) const
Size of the specified dimension.
const T * fortran_vec(void) const
Size of the specified dimension.
bool is_shared(void)
Size of the specified dimension.
Template for N-dimensional array classes with like-type math operators.
void idx_min(const idx_vector &idx, const MArray< T > &vals)
void idx_add_nd(const idx_vector &idx, const MArray< T > &vals, int dim=-1)
void idx_max(const idx_vector &idx, const MArray< T > &vals)
void idx_add(const idx_vector &idx, T val)
Performs indexed accumulative addition.
Vector representing the dimensions (size) of an Array.
int first_non_singleton(int def=0) const
dim_vector redim(int n) const
Force certain dimensionality, preserving numel ().
void loop(octave_idx_type n, Functor body) const
octave_idx_type length(octave_idx_type n=0) const
octave_idx_type extent(octave_idx_type n) const
void mx_inline_div(size_t n, R *r, const X *x, const Y *y)
void mx_inline_div2(size_t n, R *r, const X *x)
void mx_inline_uminus(size_t n, R *r, const X *x)
void mx_inline_mul(size_t n, R *r, const X *x, const Y *y)
void mx_inline_add2(size_t n, R *r, const X *x)
void mx_inline_sub2(size_t n, R *r, const X *x)
void mx_inline_uminus2(size_t n, R *r)
void mx_inline_add(size_t n, R *r, const X *x, const Y *y)
void mx_inline_mul2(size_t n, R *r, const X *x)
void mx_inline_sub(size_t n, R *r, const X *x, const Y *y)
void get_extent_triplet(const dim_vector &dims, int &dim, octave_idx_type &l, octave_idx_type &n, octave_idx_type &u)
T::size_type numel(const T &str)
void operator()(octave_idx_type i)
_idxadda_helper(T *a, const T *v)
void operator()(octave_idx_type i)
_idxadds_helper(T *a, T v)
_idxbinop_helper(T *a, const T *v)
void operator()(octave_idx_type i)