 
 
	 
In file ../include/EST_TMatrix.h:
| template<class T> class EST_TMatrix | 
Template Matrix class.
| ![[more]](icon1.gif)  | EST_TMatrix () default constructor | ||||||||||||||||
| ![[more]](icon1.gif)  | EST_TMatrix (const EST_TMatrix<T> &m) copy constructor | ||||||||||||||||
| ![[more]](icon1.gif)  | EST_TMatrix (int rows, int cols) "size" constructor | ||||||||||||||||
| ![[more]](icon1.gif)  | EST_TMatrix (int rows, int cols, T* memory, int offset=0, int free_when_destroyed=0) construct from memory supplied by caller | ||||||||||||||||
| ![[more]](icon1.gif)  | ~EST_TMatrix () EST_TMatrix | ||||||||||||||||
| ![[more]](icon1.gif)  | access 
 | ||||||||||||||||
| ![[more]](icon1.gif) void | resize (int rows, int cols, int set=1) resize matrix. | ||||||||||||||||
| ![[more]](icon1.gif) void | fill (const T &v) fill matrix with value v | ||||||||||||||||
| ![[more]](icon1.gif) EST_TMatrix& | operator= (const EST_TMatrix &s) assignment operator | ||||||||||||||||
| ![[more]](icon1.gif) EST_TMatrix& | add_rows (const EST_TMatrix &s) The two versions of what might have been operator += | ||||||||||||||||
| ![[more]](icon1.gif)  | Sub-Matrix/Vector Extraction 
 | ||||||||||||||||
| ![[more]](icon1.gif)  | Copy in and out 
 | ||||||||||||||||
| ![[more]](icon1.gif)  | io 
 | 
| ![[more]](icon1.gif) unsigned int | p_num_rows Visible shape | 
| ![[more]](icon1.gif) unsigned int | p_row_step How to access the memory | 
| ![[more]](icon1.gif) INLINE const T& | fast_a_m (int r, int c) const quick method for returning x[m][n] | 
| ![[more]](icon1.gif) void | set_values (const T* data, int r_step, int c_step, int start_r, int num_r, int start_c, int num_c ) Get and set values from array | 
| ![[more]](icon1.gif) void | copy (const EST_TMatrix<T> &a) private resize and copy function. | 
| ![[more]](icon1.gif) void | copy_data (const EST_TMatrix<T> &a) just copy data, no resizing, no size check | 
| ![[more]](icon1.gif) void | just_resize (int new_rows, int new_cols, T** old_vals) resize the memory and reset the bounds, but don't set values | 
| ![[more]](icon1.gif) void | default_vals () sets data and length to default values (0 in both cases) | 
 T* p_memory
T* p_memory
 unsigned int p_num_columns
unsigned int p_num_columns
 unsigned int p_offset
unsigned int p_offset
 static   const T* def_val
static   const T* def_val
 static   T* error_return
static   T* error_return
 INLINE unsigned int vcell_pos(unsigned int c, unsigned int cs) const
INLINE unsigned int vcell_pos(unsigned int c, unsigned int cs) const 
 INLINE const T& fast_a_v(int c) const
INLINE const T& fast_a_v(int c) const 
 const T* memory() const
const T* memory() const 
 void empty()
void empty()
 EST_write_status save(const EST_String &filename)
EST_write_status save(const EST_String &filename)
 int operator == (const EST_TVector &v) const
int operator == (const EST_TVector &v) const 
 int operator != (const EST_TVector &v) const
int operator != (const EST_TVector &v) const 
 void copy_section(T* dest, int offset=0, int num=-1) const
void copy_section(T* dest, int offset=0, int num=-1) const 
 void sub_vector(EST_TVector<T> &sv, int start_c=0, int len=-1)
void sub_vector(EST_TVector<T> &sv, int start_c=0, int len=-1)
 void integrity() const
void integrity() const 
Template Matrix class.This is an extension of the EST_TVector class to two dimensions.
 unsigned int p_num_rows
unsigned int p_num_rows
 unsigned int p_row_step
unsigned int p_row_step
 INLINE const T& fast_a_m(int r, int c) const
INLINE const T& fast_a_m(int r, int c) const 
 void set_values(const T* data, int r_step, int c_step, int start_r, int num_r, int start_c, int num_c )
void set_values(const T* data, int r_step, int c_step, int start_r, int num_r, int start_c, int num_c )
 void copy(const EST_TMatrix<T> &a)
void copy(const EST_TMatrix<T> &a)
 void copy_data(const EST_TMatrix<T> &a)
void copy_data(const EST_TMatrix<T> &a)
 void just_resize(int new_rows, int new_cols, T** old_vals)
void just_resize(int new_rows, int new_cols, T** old_vals)
 void default_vals()
void default_vals()
 EST_TMatrix()
 EST_TMatrix()
 EST_TMatrix(const EST_TMatrix<T> &m)
 EST_TMatrix(const EST_TMatrix<T> &m)
 EST_TMatrix(int rows, int cols)
 EST_TMatrix(int rows, int cols)
 EST_TMatrix(int rows, int cols, T* memory, int offset=0, int free_when_destroyed=0)
 EST_TMatrix(int rows, int cols, T* memory, int offset=0, int free_when_destroyed=0)
 ~EST_TMatrix()
 ~EST_TMatrix()
 access
 access
 int num_rows() const
int num_rows() const 
 int num_columns() const
int num_columns() const 
 INLINE const T& a_no_check(int row, int col) const
INLINE const T& a_no_check(int row, int col) const 
 INLINE T& a_no_check(int row, int col)
INLINE T& a_no_check(int row, int col)
 const T& a_check(int row, int col) const
const T& a_check(int row, int col) const 
 T& a_check(int row, int col)
T& a_check(int row, int col)
 const T& operator () (int row, int col) const
const T& operator () (int row, int col) const 
 T& operator () (int row, int col)
T& operator () (int row, int col)
 void resize(int rows, int cols, int set=1)
void resize(int rows, int cols, int set=1)
 void fill(const T &v)
void fill(const T &v)
 EST_TMatrix& operator=(const EST_TMatrix &s)
EST_TMatrix& operator=(const EST_TMatrix &s)
 EST_TMatrix& add_rows(const EST_TMatrix &s)
EST_TMatrix& add_rows(const EST_TMatrix &s)
 Sub-Matrix/Vector Extraction
 Sub-Matrix/Vector Extraction
 void row(EST_TVector<T> &rv, int r, int start_c=0, int len=-1)
void row(EST_TVector<T> &rv, int r, int start_c=0, int len=-1)
 void column(EST_TVector<T> &cv, int c, int start_r=0, int len=-1)
void column(EST_TVector<T> &cv, int c, int start_r=0, int len=-1)
 void sub_matrix(EST_TMatrix<T> &sm, int r=0, int numr=EST_ALL, int c=0, int numc=EST_ALL)
void sub_matrix(EST_TMatrix<T> &sm, int r=0, int numr=EST_ALL, int c=0, int numc=EST_ALL)
 Copy in and out
 Copy in and out
 void copy_row(int r, T* buf, int offset=0, int num=-1) const
void copy_row(int r, T* buf, int offset=0, int num=-1) const 
 void copy_row(int r, EST_TVector<T> &t, int offset=0, int num=-1) const
void copy_row(int r, EST_TVector<T> &t, int offset=0, int num=-1) const 
 void copy_column(int c, T* buf, int offset=0, int num=-1) const
void copy_column(int c, T* buf, int offset=0, int num=-1) const 
 void copy_column(int c, EST_TVector<T> &t, int offset=0, int num=-1) const
void copy_column(int c, EST_TVector<T> &t, int offset=0, int num=-1) const 
 void set_row(int n, const T* buf, int offset=0, int num=-1)
void set_row(int n, const T* buf, int offset=0, int num=-1)
 void set_column(int n, const T* buf, int offset=0, int num=-1)
void set_column(int n, const T* buf, int offset=0, int num=-1)
 void set_memory(T* buffer, int offset, int rows, int columns, int free_when_destroyed=0)
void set_memory(T* buffer, int offset, int rows, int columns, int free_when_destroyed=0)
 io
 io
Alphabetic index HTML hierarchy of classes or Java
 
This page is part of the 
Edinburgh Speech Tools Library documentation
Copyright  University of Edinburgh 1997
Contact:  
         speech_tools@cstr.ed.ac.uk