26#if ! defined (octave_dNDArray_h)
27#define octave_dNDArray_h 1
29#include "octave-config.h"
51 bool negative_to_nan =
false);
76 OCTAVE_API bool any_element_is_negative (
bool =
false)
const;
77 OCTAVE_API bool any_element_is_positive (
bool =
false)
const;
79 OCTAVE_API bool any_element_is_inf_or_nan ()
const;
80 OCTAVE_API bool any_element_not_one_or_zero ()
const;
81 OCTAVE_API bool all_elements_are_zero ()
const;
82 OCTAVE_API bool all_elements_are_int_or_inf_or_nan ()
const;
83 OCTAVE_API bool all_integers (
double& max_val,
double& min_val)
const;
147 const dim_vector& dimensions,
int start_dimension = 0);
template std::ostream & operator<<(std::ostream &, const Array< bool > &)
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)
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
N Dimensional Array with copy-on-write semantics.
Array< T, Alloc > & insert(const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
Array< T, Alloc > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
octave_idx_type compute_index(octave_idx_type i, octave_idx_type j) const
Template for N-dimensional array classes with like-type math operators.
MArray< T > & operator=(const MArray< T > &a)
NDArray(const intNDArray< U > &a)
NDArray(const NDArray &a)
NDArray(const dim_vector &dv, double val)
NDArray(const Array< U > &a)
NDArray(const MArray< U > &a)
NDArray(const dim_vector &dv)
Vector representing the dimensions (size) of an Array.
ColumnVector real(const ComplexColumnVector &a)
ColumnVector imag(const ComplexColumnVector &a)
NDArray real(const ComplexNDArray &a)
NDArray imag(const ComplexNDArray &a)
bool too_large_for_float(double x)
#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)
template int8_t abs(int8_t)