56 T val = this->
elem (i);
58 if (val != 0.0 && val != 1.0)
144 operator << (std::ostream& os, const intNDArray<T>& a)
149 os <<
" " << a.elem (i) <<
"\n";
191 T val = this->
elem (i);
192 ret.
xelem (i) = val.abs ();
207 T val = this->
elem (i);
208 ret.
xelem (i) = val.signum ();
253 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_max);
267 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_min);
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
NDArray dsum(int dim) const
static void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
void mx_inline_cummax(const T *v, T *r, octave_idx_type n)
intNDArray abs(void) const
const octave_base_value const Array< octave_idx_type > & ra_idx
octave_idx_type numel(void) const
Number of elements in the array.
intNDArray sum(int dim) const
intNDArray cummin(int dim=-1) const
intNDArray max(int dim=-1) const
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
bool any_element_not_one_or_zero(void) const
T & elem(octave_idx_type n)
boolNDArray operator!(void) const
void mx_inline_max(const T *v, T *r, octave_idx_type n)
bool mx_inline_any(const T *v, octave_idx_type n)
intNDArray prod(int dim) const
intNDArray min(int dim=-1) const
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
std::istream & operator>>(std::istream &is, intNDArray< T > &a)
octave_idx_type nelem(void) const
Number of elements in the array.
void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension)
static octave_idx_type compute_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
intNDArray & insert(const intNDArray< T > &a, octave_idx_type r, octave_idx_type c)
intNDArray concat(const intNDArray< T > &rb, const Array< octave_idx_type > &ra_idx)
boolNDArray all(int dim=-1) const
void mx_inline_cummin(const T *v, T *r, octave_idx_type n)
subst_template_param< std::complex, T, double >::type mx_inline_dsum(const T *v, octave_idx_type n)
T & xelem(octave_idx_type n)
intNDArray cummax(int dim=-1) const
T mx_inline_sum(const T *v, octave_idx_type n)
void mx_inline_cumsum(const T *v, T *r, octave_idx_type n)
intNDArray diag(octave_idx_type k=0) const
bool mx_inline_all(const T *v, octave_idx_type n)
intNDArray signum(void) const
boolNDArray any(int dim=-1) const
intNDArray cumsum(int dim) const
T mx_inline_prod(const T *v, octave_idx_type n)
void mx_inline_diff(const T *v, T *r, octave_idx_type n, octave_idx_type order)
intNDArray diff(octave_idx_type order=1, int dim=-1) const
void mx_inline_min(const T *v, T *r, octave_idx_type n)