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>
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)
Array< T > & insert(const Array< T > &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.
octave_idx_type numel(void) const
Number of elements in the array.
T & elem(octave_idx_type n)
Size of the specified dimension.
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
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
intNDArray & insert(const intNDArray< T > &a, const Array< octave_idx_type > &ra_idx)
intNDArray min(int dim=-1) const
boolNDArray all(int dim=-1) 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 abs(void) const
NDArray dsum(int dim) const
bool any_element_not_one_or_zero(void) 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
boolNDArray operator!(void) const
intNDArray signum(void) 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