57 if (val != 0.0 &&
val != 1.0)
103 template <
typename T>
111 template <
typename T>
121 template <
typename T>
130 template <
typename T>
141 template <
typename T>
143 operator << (std::ostream& os, const intNDArray<T>&
a)
148 os <<
' ' <<
a.elem (
i) <<
"\n";
153 template <
typename T>
179 template <
typename T>
195 template <
typename T>
211 template <
typename T>
218 template <
typename T>
225 template <
typename T>
232 template <
typename T>
239 template <
typename T>
246 template <
typename T>
250 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_max);
253 template <
typename T>
260 template <
typename T>
264 return do_mx_minmax_op<T> (*
this, idx_arg, dim,
mx_inline_min);
267 template <
typename T>
274 template <
typename T>
281 template <
typename T>
288 template <
typename T>
295 template <
typename T>
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
intNDArray cummin(int dim=-1) const
boolNDArray operator!(void) const
intNDArray cumsum(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
intNDArray min(int dim=-1) const
const octave_base_value const Array< octave_idx_type > & ra_idx
intNDArray diff(octave_idx_type order=1, int dim=-1) const
identity matrix If supplied two scalar respectively For allows like xample val
intNDArray diag(octave_idx_type k=0) const
boolNDArray any(int dim=-1) const
intNDArray sum(int dim) const
T & elem(octave_idx_type n)
void mx_inline_max(const T *v, T *r, octave_idx_type n)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
bool mx_inline_any(const T *v, octave_idx_type n)
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)
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
intNDArray signum(void) const
bool any_element_not_one_or_zero(void) const
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)
void mx_inline_cummin(const T *v, T *r, octave_idx_type n)
intNDArray cummax(int dim=-1) const
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
subst_template_param< std::complex, T, double >::type mx_inline_dsum(const T *v, octave_idx_type n)
T & xelem(octave_idx_type n)
T mx_inline_sum(const T *v, octave_idx_type n)
NDArray dsum(int dim) const
T::size_type numel(const T &str)
void mx_inline_cumsum(const T *v, T *r, octave_idx_type n)
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
intNDArray max(int dim=-1) const
bool mx_inline_all(const T *v, octave_idx_type n)
intNDArray prod(int dim) const
octave_idx_type numel(void) const
Number of elements in the array.
boolNDArray all(int dim=-1) const
write the output to stdout if nargout is
Vector representing the dimensions (size) of an Array.
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)
void mx_inline_min(const T *v, T *r, octave_idx_type n)