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)
 dim_vector (octave_idx_type r, octave_idx_type c)
 dim_vector (octave_idx_type r, octave_idx_type c, octave_idx_type p)
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 any_zero (void) const
int num_ones (void) const
bool all_ones (void) const
octave_idx_type numel (int n=0) const
bool any_neg (void) const
dim_vector squeeze (void) const
bool concat (const dim_vector &dvb, int dim=0)
dim_vector redim (int n) const
bool is_vector (void) const
int first_non_singleton (int def=0) const

Static Public Member Functions

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 ( octave_idx_type  r,
octave_idx_type  c 
) [inline, explicit]

dim_vector::dim_vector ( octave_idx_type  r,
octave_idx_type  c,
octave_idx_type  p 
) [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]

void dim_vector::chop_all_singletons ( void   )  [inline]

void dim_vector::chop_trailing_singletons ( void   )  [inline]

bool dim_vector::concat ( const dim_vector dvb,
int  dim = 0 
) [inline]

octave_idx_type dim_vector::elem ( int  i  )  const [inline]

octave_idx_type& dim_vector::elem ( int  i  )  [inline]

int dim_vector::first_non_singleton ( int  def = 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 [inline]

octave_idx_type dim_vector::numel ( int  n = 0  )  const [inline]

octave_idx_type dim_vector::operator() ( int  i  )  const [inline]

octave_idx_type& dim_vector::operator() ( int  i  )  [inline]

dim_vector& dim_vector::operator= ( const dim_vector dv  )  [inline]

dim_vector dim_vector::redim ( int  n  )  const [inline]

void dim_vector::resize ( int  n,
int  fill_value = 0 
) [inline]

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

std::string dim_vector::str ( char  sep = 'x'  )  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 file: