26 #if ! defined (octave_dNDArray_h)
27 #define octave_dNDArray_h 1
29 #include "octave-config.h"
49 :
MArray<double> (dv, val) { }
54 bool negative_to_nan =
false);
70 :
MArray<double> (sdata, slen, adims, arep) { }
82 bool any_element_is_negative (
bool =
false)
const;
83 bool any_element_is_positive (
bool =
false)
const;
85 bool any_element_is_inf_or_nan (
void)
const;
87 bool all_elements_are_zero (
void)
const;
88 bool all_elements_are_int_or_inf_or_nan (
void)
const;
89 bool all_integers (
double& max_val,
double& min_val)
const;
90 bool all_integers (
void)
const;
91 bool too_large_for_float (
void)
const;
98 NDArray cumprod (
int dim = -1)
const;
102 NDArray xsum (
int dim = -1)
const;
103 NDArray sumsq (
int dim = -1)
const;
148 int start_dimension = 0);
155 friend OCTAVE_API std::ostream&
operator << (std::ostream& os,
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
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)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
#define MARRAY_FORWARD_DEFS(B, R, T)
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
#define BSXFUN_STDREL_DECLS(ARRAY, API)
#define BSXFUN_STDOP_DECLS(ARRAY, API)
#define BSXFUN_OP2_DECL(OP, ARRAY, ARRAY1, ARRAY2, API)
#define BSXFUN_OP_DECL(OP, ARRAY, API)
Array< T > index(const idx_vector &i) const
Indexing without resizing.
ComplexNDArray diag(octave_idx_type k=0) const
MArray< T > & operator=(const MArray< T > &a)
MArray squeeze(void) const
NDArray(const intNDArray< U > &a)
NDArray(const NDArray &a)
NDArray & changesign(void)
NDArray(const dim_vector &dv, double val)
NDArray squeeze(void) const
NDArray(const Array< U > &a)
NDArray(const MArray< U > &a)
NDArray(double *sdata, octave_idx_type slen, octave_idx_type *adims, void *arep)
NDArray(const dim_vector &dv)
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 sum(int dim) const
boolNDArray all(int dim=-1) const
intNDArray cummin(int dim=-1) const
intNDArray prod(int dim) const
intNDArray & operator=(const intNDArray< T > &a)=default
bool any_element_is_nan(void) const
bool any_element_not_one_or_zero(void) const
intNDArray cummax(int dim=-1) const
intNDArray cumsum(int dim) const
intNDArray diff(octave_idx_type order=1, int dim=-1) const
OCTAVE_API NDArray max(double d, const NDArray &m)
OCTAVE_API NDArray real(const ComplexNDArray &a)
OCTAVE_API NDArray imag(const ComplexNDArray &a)
OCTAVE_API NDArray min(double d, const NDArray &m)
#define NDND_BOOL_OP_DECLS(ND1, ND2, API)
#define NDND_CMP_OP_DECLS(ND1, ND2, API)
#define NDS_BOOL_OP_DECLS(ND, S, API)
#define SND_CMP_OP_DECLS(S, ND, API)
#define MINMAX_DECLS(T, S, API)
#define NDS_CMP_OP_DECLS(ND, S, API)
#define SND_BOOL_OP_DECLS(S, ND, API)
octave_int< T > pow(const octave_int< T > &a, const octave_int< T > &b)
const octave_base_value const Array< octave_idx_type > & ra_idx
octave_value operator!(const octave_value &a)