44 b.
elem (i) = ! this->elem (i);
57 T val = this->elem (i);
59 if (val != 0.0 && val != 1.0)
105 template <
typename T>
113 template <
typename T>
123 template <
typename T>
132 template <
typename T>
143 template <
typename T>
150 os <<
' ' << a.
elem (i) <<
"\n";
155 template <
typename T>
181 template <
typename T>
190 T val = this->elem (i);
191 ret.
xelem (i) = val.abs ();
197 template <
typename T>
206 T val = this->elem (i);
207 ret.
xelem (i) = val.signum ();
213 template <
typename T>
220 template <
typename T>
227 template <
typename T>
234 template <
typename T>
241 template <
typename T>
248 template <
typename T>
252 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_max);
255 template <
typename T>
262 template <
typename T>
266 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_min);
269 template <
typename T>
276 template <
typename T>
283 template <
typename T>
290 template <
typename T>
297 template <
typename T>
304 #if defined (__clang__)
305 # define INSTANTIATE_INTNDARRAY(T) template class OCTAVE_API intNDArray<T>
307 # define INSTANTIATE_INTNDARRAY(T) template class intNDArray<T>
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension)
T & elem(octave_idx_type n)
Size of the specified dimension.
Array< T, Alloc > & insert(const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
T & xelem(octave_idx_type n)
Size of the specified dimension.
Array< T, Alloc > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
octave_idx_type numel() const
Number of elements in the array.
Vector representing the dimensions (size) of an Array.
boolNDArray any(int dim=-1) const
intNDArray & insert(const intNDArray< T > &a, octave_idx_type r, octave_idx_type c)
intNDArray max(int dim=-1) const
static void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
intNDArray sum(int dim) const
boolNDArray operator!() const
intNDArray min(int dim=-1) const
boolNDArray all(int dim=-1) const
bool any_element_not_one_or_zero() const
intNDArray concat(const intNDArray< T > &rb, const Array< octave_idx_type > &ra_idx)
intNDArray cummin(int dim=-1) const
intNDArray prod(int dim) const
intNDArray diag(octave_idx_type k=0) const
intNDArray signum() const
NDArray dsum(int dim) const
static octave_idx_type compute_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
intNDArray cummax(int dim=-1) const
intNDArray cumsum(int dim) const
intNDArray diff(octave_idx_type order=1, int dim=-1) const
std::ostream & operator<<(std::ostream &os, const intNDArray< T > &a)
std::istream & operator>>(std::istream &is, intNDArray< T > &a)
void mx_inline_any(const T *v, bool *r, octave_idx_type l, octave_idx_type n, octave_idx_type u)
void mx_inline_cummin(const T *v, T *r, octave_idx_type n)
void mx_inline_cumsum(const T *v, T *r, octave_idx_type n)
void mx_inline_max(const T *v, T *r, octave_idx_type n)
void mx_inline_all(const T *v, bool *r, octave_idx_type m, octave_idx_type n)
void mx_inline_prod(const T *v, T *r, octave_idx_type l, octave_idx_type n, octave_idx_type u)
void mx_inline_cummax(const T *v, T *r, octave_idx_type n)
T mx_inline_sum(const T *v, octave_idx_type n)
void mx_inline_min(const T *v, T *r, octave_idx_type n)
void mx_inline_dsum(const T *v, typename subst_template_param< std::complex, T, double >::type *r, octave_idx_type l, octave_idx_type n, octave_idx_type u)
void mx_inline_diff(const T *v, T *r, octave_idx_type n, octave_idx_type order)
T::size_type numel(const T &str)
const octave_base_value const Array< octave_idx_type > & ra_idx