Navigation

Operators and Keywords

Function List:

C++ API

NDArray Class Reference

#include <dNDArray.h>

Inherits MArrayN< double >.

Collaboration diagram for NDArray:

List of all members.


Public Types

typedef Matrix matrix_type
typedef double(* dmapper )(double)
typedef Complex(* cmapper )(const Complex &)
typedef bool(* bmapper )(double)

Public Member Functions

 NDArray (void)
 NDArray (const dim_vector &dv)
 NDArray (const dim_vector &dv, double val)
 NDArray (const NDArray &a)
 NDArray (const Matrix &a)
 NDArray (const Array< octave_idx_type > &a, bool zero_based=false, bool negative_to_nan=false)
template<class U >
 NDArray (const MArrayN< U > &a)
template<class U >
 NDArray (const Array< U > &a)
template<class U >
 NDArray (const intNDArray< U > &a)
 NDArray (const charNDArray &)
NDArrayoperator= (const NDArray &a)
boolNDArray operator! (void) const
bool any_element_is_negative (bool=false) const
bool any_element_is_nan (void) const
bool any_element_is_inf_or_nan (void) const
bool any_element_not_one_or_zero (void) const
bool all_elements_are_zero (void) const
bool all_elements_are_int_or_inf_or_nan (void) const
bool all_integers (double &max_val, double &min_val) const
bool too_large_for_float (void) const
boolNDArray all (int dim=-1) const
boolNDArray any (int dim=-1) const
NDArray cumprod (int dim=-1) const
NDArray cumsum (int dim=-1) const
NDArray prod (int dim=-1) const
NDArray sum (int dim=-1) const
NDArray xsum (int dim=-1) const
NDArray sumsq (int dim=-1) const
NDArray concat (const NDArray &rb, const Array< octave_idx_type > &ra_idx)
ComplexNDArray concat (const ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
charNDArray concat (const charNDArray &rb, const Array< octave_idx_type > &ra_idx)
NDArray max (int dim=0) const
NDArray max (Array< octave_idx_type > &index, int dim=0) const
NDArray min (int dim=0) const
NDArray min (Array< octave_idx_type > &index, int dim=0) const
NDArray cummax (int dim=0) const
NDArray cummax (Array< octave_idx_type > &index, int dim=0) const
NDArray cummin (int dim=0) const
NDArray cummin (Array< octave_idx_type > &index, int dim=0) const
NDArray diff (octave_idx_type order=1, int dim=0) const
NDArrayinsert (const NDArray &a, octave_idx_type r, octave_idx_type c)
NDArrayinsert (const NDArray &a, const Array< octave_idx_type > &ra_idx)
NDArray abs (void) const
boolNDArray isnan (void) const
boolNDArray isinf (void) const
boolNDArray isfinite (void) const
ComplexNDArray fourier (int dim=1) const
ComplexNDArray ifourier (int dim=1) const
ComplexNDArray fourier2d (void) const
ComplexNDArray ifourier2d (void) const
ComplexNDArray fourierNd (void) const
ComplexNDArray ifourierNd (void) const
Matrix matrix_value (void) const
NDArray squeeze (void) const
NDArray diag (octave_idx_type k=0) const
NDArraychangesign (void)
NDArray map (dmapper fcn) const
ComplexNDArray map (cmapper fcn) const
boolNDArray map (bmapper fcn) const

Static Public Member Functions

static void increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
static octave_idx_type compute_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
static double resize_fill_value (void)

Friends

class ComplexNDArray
OCTAVE_API NDArray real (const ComplexNDArray &a)
OCTAVE_API NDArray imag (const ComplexNDArray &a)
OCTAVE_API std::ostreamoperator<< (std::ostream &os, const NDArray &a)
OCTAVE_API std::istream & operator>> (std::istream &is, NDArray &a)

Member Typedef Documentation


Constructor & Destructor Documentation

NDArray::NDArray ( void   )  [inline]

NDArray::NDArray ( const dim_vector dv  )  [inline]

NDArray::NDArray ( const dim_vector dv,
double  val 
) [inline]

NDArray::NDArray ( const NDArray a  )  [inline]

NDArray::NDArray ( const Matrix a  )  [inline]

NDArray::NDArray ( const Array< octave_idx_type > &  a,
bool  zero_based = false,
bool  negative_to_nan = false 
)

template<class U >
NDArray::NDArray ( const MArrayN< U > &  a  )  [inline]

template<class U >
NDArray::NDArray ( const Array< U > &  a  )  [inline]

template<class U >
NDArray::NDArray ( const intNDArray< U > &  a  )  [inline, explicit]

NDArray::NDArray ( const charNDArray a  ) 


Member Function Documentation

NDArray NDArray::abs ( void   )  const

boolNDArray NDArray::all ( int  dim = -1  )  const

bool NDArray::all_elements_are_int_or_inf_or_nan ( void   )  const

bool NDArray::all_elements_are_zero ( void   )  const

bool NDArray::all_integers ( double max_val,
double min_val 
) const

boolNDArray NDArray::any ( int  dim = -1  )  const

bool NDArray::any_element_is_inf_or_nan ( void   )  const

bool NDArray::any_element_is_nan ( void   )  const

bool NDArray::any_element_is_negative ( bool  neg_zero = false  )  const

bool NDArray::any_element_not_one_or_zero ( void   )  const

NDArray& NDArray::changesign ( void   )  [inline]

Reimplemented from MArrayN< double >.

octave_idx_type NDArray::compute_index ( Array< octave_idx_type > &  ra_idx,
const dim_vector dimensions 
) [static]

charNDArray NDArray::concat ( const charNDArray rb,
const Array< octave_idx_type > &  ra_idx 
)

ComplexNDArray NDArray::concat ( const ComplexNDArray rb,
const Array< octave_idx_type > &  ra_idx 
)

NDArray NDArray::concat ( const NDArray rb,
const Array< octave_idx_type > &  ra_idx 
)

NDArray NDArray::cummax ( Array< octave_idx_type > &  index,
int  dim = 0 
) const

NDArray NDArray::cummax ( int  dim = 0  )  const

NDArray NDArray::cummin ( Array< octave_idx_type > &  index,
int  dim = 0 
) const

NDArray NDArray::cummin ( int  dim = 0  )  const

NDArray NDArray::cumprod ( int  dim = -1  )  const

NDArray NDArray::cumsum ( int  dim = -1  )  const

NDArray NDArray::diag ( octave_idx_type  k = 0  )  const

Reimplemented from MArrayN< double >.

NDArray NDArray::diff ( octave_idx_type  order = 1,
int  dim = 0 
) const

F77_RET_T Complex *F77_RET_T Complex Complex *F77_RET_T Complex Complex *ComplexNDArray NDArray::fourier ( int  dim = 1  )  const

ComplexNDArray NDArray::fourier2d ( void   )  const

ComplexNDArray NDArray::fourierNd ( void   )  const

ComplexNDArray NDArray::ifourier ( int  dim = 1  )  const

ComplexNDArray NDArray::ifourier2d ( void   )  const

ComplexNDArray NDArray::ifourierNd ( void   )  const

void NDArray::increment_index ( Array< octave_idx_type > &  ra_idx,
const dim_vector dimensions,
int  start_dimension = 0 
) [static]

NDArray & NDArray::insert ( const NDArray a,
const Array< octave_idx_type > &  ra_idx 
)

NDArray & NDArray::insert ( const NDArray a,
octave_idx_type  r,
octave_idx_type  c 
)

boolNDArray NDArray::isfinite ( void   )  const

boolNDArray NDArray::isinf ( void   )  const

boolNDArray NDArray::isnan ( void   )  const

boolNDArray NDArray::map ( bmapper  fcn  )  const

ComplexNDArray NDArray::map ( cmapper  fcn  )  const

NDArray NDArray::map ( dmapper  fcn  )  const

Matrix NDArray::matrix_value ( void   )  const

NDArray NDArray::max ( Array< octave_idx_type > &  index,
int  dim = 0 
) const

NDArray NDArray::max ( int  dim = 0  )  const

NDArray NDArray::min ( Array< octave_idx_type > &  index,
int  dim = 0 
) const

NDArray NDArray::min ( int  dim = 0  )  const

boolNDArray NDArray::operator! ( void   )  const

NDArray& NDArray::operator= ( const NDArray a  )  [inline]

NDArray NDArray::prod ( int  dim = -1  )  const

static double NDArray::resize_fill_value ( void   )  [inline, static]

Reimplemented from Array< double >.

NDArray NDArray::squeeze ( void   )  const [inline]

Reimplemented from MArrayN< double >.

NDArray NDArray::sum ( int  dim = -1  )  const

NDArray NDArray::sumsq ( int  dim = -1  )  const

bool NDArray::too_large_for_float ( void   )  const

NDArray NDArray::xsum ( int  dim = -1  )  const


Friends And Related Function Documentation

friend class ComplexNDArray [friend]

OCTAVE_API NDArray imag ( const ComplexNDArray a  )  [friend]

OCTAVE_API std::ostream& operator<< ( std::ostream os,
const NDArray a 
) [friend]

OCTAVE_API std::istream& operator>> ( std::istream &  is,
NDArray a 
) [friend]

OCTAVE_API NDArray real ( const ComplexNDArray a  )  [friend]


The documentation for this class was generated from the following files: