Edinburgh Speech Tools  2.4-release
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
EST_SMatrix Class Reference
Inheritance diagram for EST_SMatrix:
Collaboration diagram for EST_SMatrix:

Public Member Functions

 EST_SMatrix (int m, int n)
 size constructor
 
 EST_SMatrix (EST_SMatrix &a)
 copy constructor
 
 EST_SMatrix (EST_SMatrix &a, int b)
 CHECK - what does this do???
 
 EST_SMatrix ()
 default constructor
 
int rateconv (int old_sr, int new_sr)
 
- Public Member Functions inherited from EST_TSimpleMatrix< short >
 EST_TSimpleMatrix (void)
 default constructor
 
 EST_TSimpleMatrix (int m, int n)
 size constructor
 
 EST_TSimpleMatrix (const EST_TSimpleMatrix< short > &m)
 copy constructor
 
void copy (const EST_TSimpleMatrix< short > &a)
 copy one matrix into another
 
void resize (int rows, int cols, int set=1)
 resize matrix
 
EST_TSimpleMatrix< short > & operator= (const EST_TSimpleMatrix< short > &s)
 assignment operator
 
- Public Member Functions inherited from EST_TMatrix< short >
 EST_TMatrix ()
 default constructor
 
 EST_TMatrix (const EST_TMatrix< short > &m)
 copy constructor
 
 EST_TMatrix (int rows, int cols)
 "size" constructor
 
 EST_TMatrix (int rows, int cols, short *memory, int offset=0, int free_when_destroyed=0)
 construct from memory supplied by caller
 
 ~EST_TMatrix ()
 EST_TMatrix.
 
bool have_rows_before (int n) const
 
bool have_columns_before (int n) const
 
void resize (int rows, int cols, int set=1)
 
void fill (const short &v)
 fill matrix with value v
 
void fill ()
 
EST_TMatrixoperator= (const EST_TMatrix &s)
 assignment operator
 
EST_TMatrixadd_rows (const EST_TMatrix &s)
 The two versions of what might have been operator +=.
 
EST_TMatrixadd_columns (const EST_TMatrix &s)
 
int num_rows () const
 return number of rows
 
int num_columns () const
 return number of columns
 
INLINE const short & a_no_check (int row, int col) const
 const access with no bounds check, care recommend
 
INLINE short & a_no_check (int row, int col)
 access with no bounds check, care recommend
 
INLINE const short & a_no_check_1 (int row, int col) const
 
INLINE short & a_no_check_1 (int row, int col)
 
const short & a_check (int row, int col) const
 const element access function
 
short & a_check (int row, int col)
 non-const element access function
 
const short & a (int row, int col) const
 
short & a (int row, int col)
 
const short & operator() (int row, int col) const
 const element access operator
 
short & operator() (int row, int col)
 non-const element access operator
 
void row (EST_TVector< short > &rv, int r, int start_c=0, int len=-1)
 Make the vector { rv} a window onto row { r}.
 
void column (EST_TVector< short > &cv, int c, int start_r=0, int len=-1)
 Make the vector { cv} a window onto column { c}.
 
void sub_matrix (EST_TMatrix< short > &sm, int r=0, int numr=EST_ALL, int c=0, int numc=EST_ALL)
 Make the matrix { sm} a window into this matrix.
 
void copy_row (int r, short *buf, int offset=0, int num=-1) const
 
void copy_row (int r, EST_TVector< short > &t, int offset=0, int num=-1) const
 
void copy_column (int c, short *buf, int offset=0, int num=-1) const
 
void copy_column (int c, EST_TVector< short > &t, int offset=0, int num=-1) const
 
void set_row (int n, const short *buf, int offset=0, int num=-1)
 
void set_row (int n, const EST_TVector< short > &t, int offset=0, int num=-1)
 
void set_row (int r, const EST_TMatrix< short > &from, int from_r, int from_offset=0, int offset=0, int num=-1)
 
void set_column (int n, const short *buf, int offset=0, int num=-1)
 
void set_column (int n, const EST_TVector< short > &t, int offset=0, int num=-1)
 
void set_column (int c, const EST_TMatrix< short > &from, int from_c, int from_offset=0, int offset=0, int num=-1)
 
void set_memory (short *buffer, int offset, int rows, int columns, int free_when_destroyed=0)
 
EST_read_status load (const class EST_String &filename)
 load Matrix from file - Not currently implemented.
 
EST_write_status save (const class EST_String &filename) const
 save Matrix to file { filename}
 
- Public Member Functions inherited from EST_TVector< T >
INLINE unsigned int vcell_pos (unsigned int c, unsigned int cs) const
 The memory access rule, in one place for easy reference.
 
INLINE unsigned int vcell_pos (unsigned int c) const
 
INLINE unsigned int vcell_pos_1 (unsigned int c) const
 
INLINE const T & fast_a_v (int c) const
 quick method for returning (x[n])
 
INLINE T & fast_a_v (int c)
 
INLINE const T & fast_a_1 (int c) const
 
INLINE T & fast_a_1 (int c)
 
void set_values (const T *data, int step, int start_c, int num_c)
 Get and set values from array.
 
void get_values (T *data, int step, int start_c, int num_c) const
 
void copy (const EST_TVector< T > &a)
 private copy function, called from all other copying functions.
 
void copy_data (const EST_TVector< T > &a)
 just copy data, no resizing, no size check.
 
void just_resize (int new_cols, T **old_vals)
 resize the memory and reset the bounds, but don't set values.
 
void default_vals ()
 sets data and length to default values (0 in both cases).
 
 EST_TVector ()
 default constructor
 
 EST_TVector (const EST_TVector< T > &v)
 copy constructor
 
 EST_TVector (int n)
 "size" constructor - make vector of size n.
 
 EST_TVector (int, T *memory, int offset=0, int free_when_destroyed=0)
 construct from memory supplied by caller
 
 ~EST_TVector ()
 destructor.
 
void resize (int n, int set=1)
 
const T * memory () const
 
T * memory ()
 
void set_memory (T *buffer, int offset, int columns, int free_when_destroyed=0)
 
EST_TVectoroperator= (const EST_TVector &s)
 assignment operator
 
void fill (const T &v)
 Fill entire array will value <parameter>v</parameter>.
 
void empty ()
 Fill vector with default value.
 
int operator== (const EST_TVector &v) const
 is true if vectors are equal size and all elements are equal.
 
int operator!= (const EST_TVector &v) const
 is true if vectors are not equal size or a single elements isn't equal.
 
void copy_section (T *dest, int offset=0, int num=-1) const
 Copy data in and out. Subclassed by SimpleVector for speed.
 
void set_section (const T *src, int offset=0, int num=-1)
 
void sub_vector (EST_TVector< T > &sv, int start_c=0, int len=-1)
 Create a sub vector.
 
void integrity () const
 
template<>
const EST_DMatrixdef_val
 
template<>
EST_DMatrixerror_return
 
template<>
const EST_DVectordef_val
 
template<>
EST_DVectorerror_return
 
template<>
const EST_FMatrixdef_val
 
template<>
EST_FMatrixerror_return
 
INLINE int num_columns () const
 number of items in vector.
 
INLINE int length () const
 number of items in vector.
 
INLINE int n () const
 number of items in vector.
 
INLINE const T & a_no_check (int n) const
 read-only const access operator: without bounds checking
 
INLINE T & a_no_check (int n)
 read/write non-const access operator: without bounds checking
 
INLINE const T & a_no_check_1 (int n) const
 read-only const access operator: without bounds checking
 
INLINE T & a_no_check_1 (int n)
 read/write non-const access operator: without bounds checking
 
const T & a_check (int n) const
 read-only const access operator: with bounds checking
 
T & a_check (int n)
 read/write non-const access operator: with bounds checking
 
const T & a (int n) const
 
T & a (int n)
 
const T & operator() (int n) const
 read-only const access operator: return reference to nth member
 
T & operator[] (int n)
 read/write non const access operator: return reference to nth member
 

Additional Inherited Members

- Public Attributes inherited from EST_TVector< T >
T * p_memory
 
unsigned int p_num_columns
 Visible shape.
 
unsigned int p_offset
 How to access the memory.
 
unsigned int p_column_step
 
bool p_sub_matrix
 
- Static Public Attributes inherited from EST_TVector< T >
static const T * def_val = &def_val_item_ptr
 default value, used for filling matrix after resizing
 
static T * error_return = &error_return_item_ptr
 
- Protected Member Functions inherited from EST_TSimpleMatrix< short >
void copy_data (const EST_TSimpleMatrix< short > &a)
 
- Protected Attributes inherited from EST_TMatrix< short >
unsigned int p_num_rows
 Visible shape.
 
unsigned int p_row_step
 How to access the memory.
 
- Friends inherited from EST_TMatrix< short >

Detailed Description

Definition at line 47 of file EST_SMatrix.h.


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