Operators and Keywords

Function List:


dim_vector Class Reference

#include <dim-vector.h>

List of all members.

Public Member Functions

 dim_vector (octave_idx_type n) GCC_ATTR_DEPRECATED
octave_idx_typeelem (int i)
octave_idx_type elem (int i) const
void chop_trailing_singletons (void)
void chop_all_singletons (void)
 dim_vector (void)
 dim_vector (const dim_vector &dv)
dim_vectoroperator= (const dim_vector &dv)
 ~dim_vector (void)
int length (void) const
octave_idx_typeoperator() (int i)
octave_idx_type operator() (int i) const
void resize (int n, int fill_value=0)
std::string str (char sep= 'x') const
bool all_zero (void) const
bool empty_2d (void) const
bool zero_by_zero (void) const
bool any_zero (void) const
int num_ones (void) const
bool all_ones (void) const
octave_idx_type numel (int n=0) const
octave_idx_type safe_numel (void) const
bool any_neg (void) const
dim_vector squeeze (void) const
bool concat (const dim_vector &dvb, int dim)
bool hvcat (const dim_vector &dvb, int dim)
dim_vector redim (int n) const
dim_vector as_column (void) const
dim_vector as_row (void) const
bool is_vector (void) const
int first_non_singleton (int def=0) const
octave_idx_type compute_index (const octave_idx_type *idx) const
octave_idx_type compute_index (const octave_idx_type *idx, int nidx) const
int increment_index (octave_idx_type *idx, int start=0) const
dim_vector cumulative (void) const
octave_idx_type cum_compute_index (const octave_idx_type *idx) const

Static Public Member Functions

static octave_idx_type dim_max (void)
static dim_vector alloc (int n)


bool operator== (const dim_vector &a, const dim_vector &b)

Constructor & Destructor Documentation

dim_vector::dim_vector ( octave_idx_type  n  )  [inline, explicit]
dim_vector::dim_vector ( void   )  [inline, explicit]
dim_vector::dim_vector ( const dim_vector dv  )  [inline]
dim_vector::~dim_vector ( void   )  [inline]

Member Function Documentation

bool dim_vector::all_ones ( void   )  const [inline]
bool dim_vector::all_zero ( void   )  const [inline]
static dim_vector dim_vector::alloc ( int  n  )  [inline, static]
bool dim_vector::any_neg ( void   )  const [inline]
bool dim_vector::any_zero ( void   )  const [inline]
dim_vector dim_vector::as_column ( void   )  const [inline]
dim_vector dim_vector::as_row ( void   )  const [inline]
void dim_vector::chop_all_singletons ( void   ) 
void dim_vector::chop_trailing_singletons ( void   )  [inline]
octave_idx_type dim_vector::compute_index ( const octave_idx_type idx  )  const [inline]
octave_idx_type dim_vector::compute_index ( const octave_idx_type idx,
int  nidx 
) const [inline]
bool dim_vector::concat ( const dim_vector dvb,
int  dim 
octave_idx_type dim_vector::cum_compute_index ( const octave_idx_type idx  )  const [inline]
dim_vector dim_vector::cumulative ( void   )  const [inline]
octave_idx_type dim_vector::dim_max ( void   )  [static]
octave_idx_type dim_vector::elem ( int  i  )  const [inline]
octave_idx_type& dim_vector::elem ( int  i  )  [inline]
bool dim_vector::empty_2d ( void   )  const [inline]
int dim_vector::first_non_singleton ( int  def = 0  )  const [inline]
bool dim_vector::hvcat ( const dim_vector dvb,
int  dim 
int dim_vector::increment_index ( octave_idx_type idx,
int  start = 0 
) const [inline]
bool dim_vector::is_vector ( void   )  const [inline]
int dim_vector::length ( void   )  const [inline]
int dim_vector::num_ones ( void   )  const
octave_idx_type dim_vector::numel ( int  n = 0  )  const [inline]
octave_idx_type& dim_vector::operator() ( int  i  )  [inline]
octave_idx_type dim_vector::operator() ( int  i  )  const [inline]
dim_vector& dim_vector::operator= ( const dim_vector dv  )  [inline]
dim_vector dim_vector::redim ( int  n  )  const
void dim_vector::resize ( int  n,
int  fill_value = 0 
) [inline]
octave_idx_type dim_vector::safe_numel ( void   )  const
dim_vector dim_vector::squeeze ( void   )  const
std::string dim_vector::str ( char  sep = 'x'  )  const
bool dim_vector::zero_by_zero ( void   )  const [inline]

Friends And Related Function Documentation

bool operator== ( const dim_vector a,
const dim_vector b 
) [friend]

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