In file ../include/EST_DMatrix.h:

## class EST_DMatrix

> A matrix class for double precision floating point numbers.

## Inheritance:

### Public Methods

  | EST_DMatrix (int m, int n) size constructor
  | EST_DMatrix (const EST_DMatrix &a) copy constructor
  | EST_DMatrix (const EST_DMatrix &a, int b) CHECK - what does this do???
  | EST_DMatrix () default constructor
  EST_write_status | save (const EST_String &filename, const EST_String &type = EST_DMatrix::default_file_type) Save in file (ascii or binary)
  EST_read_status | load (const EST_String &filename) Load from file (ascii or binary as defined in file)
  EST_write_status | est_save (const EST_String &filename, const EST_String &type) Save in file in est format
  EST_read_status | est_load (const EST_String &filename) Load from file in est format (binary/ascii defined in file itself)
  void | copyin (double** x, int rows, int cols) Copy 2-d array `x` of size `rows x cols` into matrix
  EST_DMatrix& | operator+= (const EST_DMatrix &a) Add elements of 2 same sized matrices
  EST_DMatrix& | operator-= (const EST_DMatrix &a) Subtract elements of 2 same sized matrices
  EST_DMatrix& | operator*= (const double f) elementwise multiply by scalar
  EST_DMatrix& | operator/= (const double f) elementwise divide by scalar

## Documentation

> A matrix class for double precision floating point numbers. EST_DMatrix x should be used instead of double **x wherever possible.

`EST_DMatrix(int m, int n)`
  size constructor

`EST_DMatrix(const EST_DMatrix &a)`
  copy constructor

`EST_DMatrix(const EST_DMatrix &a, int b)`
  CHECK - what does this do???

`EST_DMatrix()`
  default constructor

`EST_write_status save(const EST_String &filename, const EST_String &type = EST_DMatrix::default_file_type)`
  Save in file (ascii or binary)

`EST_read_status load(const EST_String &filename)`
  Load from file (ascii or binary as defined in file)

`EST_write_status est_save(const EST_String &filename, const EST_String &type)`
  Save in file in est format

`EST_read_status est_load(const EST_String &filename)`
  Load from file in est format (binary/ascii defined in file itself)

`void copyin(double** x, int rows, int cols)`
  Copy 2-d array `x` of size `rows x cols` into matrix

`EST_DMatrix& operator+=(const EST_DMatrix &a)`
  Add elements of 2 same sized matrices

`EST_DMatrix& operator-=(const EST_DMatrix &a)`
  Subtract elements of 2 same sized matrices

`EST_DMatrix& operator*=(const double f)`
  elementwise multiply by scalar

`EST_DMatrix& operator/=(const double f)`
  elementwise divide by scalar

This class has no child classes.

Friends:
  EST_DMatrix operator*(const EST_DMatrix &a, const double x)
  EST_DVector operator*(const EST_DMatrix &a, const EST_DVector &v)
  EST_DVector operator*(const EST_DVector &v,const EST_DMatrix &a)
  EST_DMatrix operator*(const EST_DMatrix &a, const EST_DMatrix &b)

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