Operators and Keywords

Function List:


idx_vector Class Reference

#include <idx-vector.h>

Collaboration diagram for idx_vector:

List of all members.


class  idx_base_rep
class  idx_colon_rep
class  idx_mask_rep
class  idx_range_rep
class  idx_scalar_rep
class  idx_vector_rep

Public Types

enum  idx_class_type {
  class_invalid = -1, class_colon = 0, class_range, class_scalar,
  class_vector, class_mask

Public Member Functions

 idx_vector (void)
 idx_vector (octave_idx_type i)
 idx_vector (octave_idx_type start, octave_idx_type limit, octave_idx_type step=1)
 idx_vector (const Array< octave_idx_type > &inda)
 idx_vector (const Array< octave_idx_type > &inda, octave_idx_type ext)
 idx_vector (char c)
template<class T >
 idx_vector (octave_int< T > x)
 idx_vector (double x)
 idx_vector (float x)
 idx_vector (bool x)
template<class T >
 idx_vector (const Array< octave_int< T > > &nda)
 idx_vector (const Array< double > &nda)
 idx_vector (const Array< float > &nda)
 idx_vector (const Array< bool > &nda)
 idx_vector (const Range &r)
 idx_vector (const Sparse< bool > &nda)
 idx_vector (const idx_vector &a)
 ~idx_vector (void)
idx_vectoroperator= (const idx_vector &a)
idx_class_type idx_class (void) const
octave_idx_type length (octave_idx_type n=0) const
octave_idx_type extent (octave_idx_type n) const
octave_idx_type xelem (octave_idx_type n) const
octave_idx_type checkelem (octave_idx_type n) const
octave_idx_type operator() (octave_idx_type n) const
 operator bool (void) const
bool is_colon (void) const
bool is_scalar (void) const
bool is_range (void) const
bool is_colon_equiv (octave_idx_type n) const
idx_vector sorted (bool uniq=false) const
idx_vector sorted (Array< octave_idx_type > &sidx) const
dim_vector orig_dimensions (void) const
octave_idx_type orig_rows (void) const
octave_idx_type orig_columns (void) const
int orig_empty (void) const
std::ostream & print (std::ostream &os) const
template<class T >
octave_idx_type index (const T *src, octave_idx_type n, T *dest) const
template<class T >
octave_idx_type assign (const T *src, octave_idx_type n, T *dest) const
template<class T >
octave_idx_type fill (const T &val, octave_idx_type n, T *dest) const
template<class Functor >
void loop (octave_idx_type n, Functor body) const
template<class Functor >
octave_idx_type bloop (octave_idx_type n, Functor body) const
bool maybe_reduce (octave_idx_type n, const idx_vector &j, octave_idx_type nj)
bool is_cont_range (octave_idx_type n, octave_idx_type &l, octave_idx_type &u) const
octave_idx_type increment (void) const
idx_vector complement (octave_idx_type n) const
bool is_permutation (octave_idx_type n) const
idx_vector inverse_permutation (octave_idx_type n) const
void copy_data (octave_idx_type *data) const
idx_vector unmask (void) const
void unconvert (idx_class_type &iclass, double &scalar, Range &range, Array< double > &array, Array< bool > &mask) const
Array< octave_idx_typeas_array (void) const
const octave_idx_typeraw (void)
bool is_vector (void) const
octave_idx_type elem (octave_idx_type n) const
bool is_colon_equiv (octave_idx_type n, int) const
octave_idx_type freeze (octave_idx_type z_len, const char *tag, bool resize_ok=false)
void sort (bool uniq=false)
octave_idx_type ones_count (void) const
octave_idx_type max (void) const

Static Public Member Functions

static idx_vector make_range (octave_idx_type start, octave_idx_type step, octave_idx_type len)

Static Public Attributes

static const idx_vector colon


std::ostream & operator<< (std::ostream &os, const idx_vector &a)

Member Enumeration Documentation


Constructor & Destructor Documentation

idx_vector::idx_vector ( void   )  [inline]
idx_vector::idx_vector ( octave_idx_type  i  )  [inline]
idx_vector::idx_vector ( octave_idx_type  start,
octave_idx_type  limit,
octave_idx_type  step = 1 
) [inline]
idx_vector::idx_vector ( const Array< octave_idx_type > &  inda  )  [inline]
idx_vector::idx_vector ( const Array< octave_idx_type > &  inda,
octave_idx_type  ext 
) [inline]
idx_vector::idx_vector ( char  c  )  [inline]
template<class T >
idx_vector::idx_vector ( octave_int< T >  x  )  [inline]
idx_vector::idx_vector ( double  x  )  [inline]
idx_vector::idx_vector ( float  x  )  [inline]
idx_vector::idx_vector ( bool  x  )  [inline]
template<class T >
idx_vector::idx_vector ( const Array< octave_int< T > > &  nda  )  [inline]
idx_vector::idx_vector ( const Array< double > &  nda  )  [inline]
idx_vector::idx_vector ( const Array< float > &  nda  )  [inline]
idx_vector::idx_vector ( const Array< bool > &  nda  ) 
idx_vector::idx_vector ( const Range r  )  [inline]
idx_vector::idx_vector ( const Sparse< bool > &  nda  )  [inline]
idx_vector::idx_vector ( const idx_vector a  )  [inline]
idx_vector::~idx_vector ( void   )  [inline]

Member Function Documentation

Array< octave_idx_type > idx_vector::as_array ( void   )  const
template<class T >
octave_idx_type idx_vector::assign ( const T *  src,
octave_idx_type  n,
T *  dest 
) const [inline]
template<class Functor >
octave_idx_type idx_vector::bloop ( octave_idx_type  n,
Functor  body 
) const [inline]
octave_idx_type idx_vector::checkelem ( octave_idx_type  n  )  const [inline]
idx_vector idx_vector::complement ( octave_idx_type  n  )  const
void idx_vector::copy_data ( octave_idx_type data  )  const
octave_idx_type idx_vector::elem ( octave_idx_type  n  )  const [inline]
octave_idx_type idx_vector::extent ( octave_idx_type  n  )  const [inline]
template<class T >
octave_idx_type idx_vector::fill ( const T &  val,
octave_idx_type  n,
T *  dest 
) const [inline]
octave_idx_type idx_vector::freeze ( octave_idx_type  z_len,
const char *  tag,
bool  resize_ok = false 
idx_class_type idx_vector::idx_class ( void   )  const [inline]
octave_idx_type idx_vector::increment ( void   )  const
template<class T >
octave_idx_type idx_vector::index ( const T *  src,
octave_idx_type  n,
T *  dest 
) const [inline]
idx_vector idx_vector::inverse_permutation ( octave_idx_type  n  )  const
bool idx_vector::is_colon ( void   )  const [inline]
bool idx_vector::is_colon_equiv ( octave_idx_type  n,
) const [inline]
bool idx_vector::is_colon_equiv ( octave_idx_type  n  )  const [inline]
bool idx_vector::is_cont_range ( octave_idx_type  n,
octave_idx_type l,
octave_idx_type u 
) const
bool idx_vector::is_permutation ( octave_idx_type  n  )  const
bool idx_vector::is_range ( void   )  const [inline]
bool idx_vector::is_scalar ( void   )  const [inline]
bool idx_vector::is_vector ( void   )  const
octave_idx_type idx_vector::length ( octave_idx_type  n = 0  )  const [inline]
template<class Functor >
void idx_vector::loop ( octave_idx_type  n,
Functor  body 
) const [inline]
static idx_vector idx_vector::make_range ( octave_idx_type  start,
octave_idx_type  step,
octave_idx_type  len 
) [inline, static]
octave_idx_type idx_vector::max ( void   )  const [inline]
bool idx_vector::maybe_reduce ( octave_idx_type  n,
const idx_vector j,
octave_idx_type  nj 
octave_idx_type idx_vector::ones_count ( void   )  const
idx_vector::operator bool ( void   )  const [inline]
octave_idx_type idx_vector::operator() ( octave_idx_type  n  )  const [inline]
idx_vector& idx_vector::operator= ( const idx_vector a  )  [inline]
octave_idx_type idx_vector::orig_columns ( void   )  const [inline]
dim_vector idx_vector::orig_dimensions ( void   )  const [inline]
int idx_vector::orig_empty ( void   )  const [inline]
octave_idx_type idx_vector::orig_rows ( void   )  const [inline]
std::ostream& idx_vector::print ( std::ostream &  os  )  const [inline]
const octave_idx_type * idx_vector::raw ( void   ) 
void idx_vector::sort ( bool  uniq = false  )  [inline]
idx_vector idx_vector::sorted ( bool  uniq = false  )  const [inline]
idx_vector idx_vector::sorted ( Array< octave_idx_type > &  sidx  )  const [inline]
void idx_vector::unconvert ( idx_class_type iclass,
double &  scalar,
Range range,
Array< double > &  array,
Array< bool > &  mask 
) const
idx_vector idx_vector::unmask ( void   )  const
octave_idx_type idx_vector::xelem ( octave_idx_type  n  )  const [inline]

Friends And Related Function Documentation

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

Member Data Documentation

const idx_vector idx_vector::colon [static]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines