26 #if ! defined (octave_fNDArray_h)
27 #define octave_fNDArray_h 1
29 #include "octave-config.h"
48 :
MArray<float> (dv, val) { }
73 OCTAVE_API bool any_element_is_negative (
bool =
false)
const;
74 OCTAVE_API bool any_element_is_positive (
bool =
false)
const;
75 OCTAVE_API bool any_element_is_nan (
void)
const;
76 OCTAVE_API bool any_element_is_inf_or_nan (
void)
const;
77 OCTAVE_API bool any_element_not_one_or_zero (
void)
const;
78 OCTAVE_API bool all_elements_are_zero (
void)
const;
79 OCTAVE_API bool all_elements_are_int_or_inf_or_nan (
void)
const;
80 OCTAVE_API bool all_integers (
float& max_val,
float& min_val)
const;
147 const dim_vector& dimensions,
int start_dimension = 0);
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)
N Dimensional Array with copy-on-write semantics.
OCTAVE_API FloatComplexNDArray diag(octave_idx_type k=0) const
FloatNDArray(const Array< U > &a)
FloatNDArray squeeze(void) const
FloatNDArray(const MArray< U > &a)
FloatNDArray & changesign(void)
FloatNDArray(const dim_vector &dv, float val)
FloatNDArray(const dim_vector &dv)
FloatNDArray(const intNDArray< U > &a)
FloatNDArray(const FloatNDArray &a)
OCTARRAY_API void changesign(void)
MArray< T > & operator=(const MArray< T > &a)
MArray squeeze(void) const
Vector representing the dimensions (size) of an Array.
OCTAVE_API FloatNDArray real(const FloatComplexNDArray &a)
OCTAVE_API FloatNDArray imag(const FloatComplexNDArray &a)
OCTAVE_API FloatNDArray max(float d, const FloatNDArray &m)
OCTAVE_API FloatNDArray min(float d, const FloatNDArray &m)
bool too_large_for_float(double x)
class OCTAVE_API FloatNDArray
#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)