In file ../include/EST_DMatrix.h:

## class EST_DVector

> A vector class for double precision floating point numbers.

## Inheritance:

### Public Methods

  | EST_DVector (int n) Size constructor
  | EST_DVector (const EST_DVector &a) Copy constructor
  | EST_DVector () Default constructor
  EST_DVector& | operator*= (const EST_DVector &s) elementwise multiply
  EST_DVector& | operator+= (const EST_DVector &s) elementwise add
  EST_DVector& | operator*= (const double d) elementwise multiply by scalar
  EST_DVector& | operator/= (const double d) elementwise divide by scalar
  EST_write_status | save (const EST_String &filename, const EST_String &type) save vector to file <tt> filename</tt>
  EST_read_status | load (const EST_String &filename) load vector from file <tt> filename</tt>
  EST_read_status | est_load (const EST_String &filename) Load from file in est format (binary/ascii defined in file itself)

### Inherited from EST_TSimpleVector:

### Public Methods

void resize(int n, int set=1)
EST_TSimpleVector& operator=(const EST_TSimpleVector<T> &s)
void zero(void)
void empty(void)

### Inherited from EST_TVector:

### Public Fields

T* p_memory
unsigned int p_num_columns
unsigned int p_offset
static const T* def_val
static T* error_return

### Public Methods

INLINE unsigned int vcell_pos(unsigned int c, unsigned int cs) const
INLINE const T& fast_a_v(int c) const
void set_values(const T* data, int step, int start_c, int num_c)
void copy(const EST_TVector<T> &a)
void copy_data(const EST_TVector<T> &a)
void just_resize(int new_cols, T** old_vals)
void default_vals()
const T* memory() const

access

int num_columns() const
  number of items in vector
int length() const
  number of items in vector
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& 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

void fill(const T &v)
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 sub_vector(EST_TVector<T> &sv, int start_c=0, int len=-1)
void integrity() const

## Documentation

> A vector class for double precision floating point numbers. `EST_DVector x` should be used instead of `float *x` wherever possible.

`EST_DVector(int n)`
  Size constructor

`EST_DVector(const EST_DVector &a)`
  Copy constructor

`EST_DVector()`
  Default constructor

`EST_DVector& operator*=(const EST_DVector &s)`
  elementwise multiply

`EST_DVector& operator+=(const EST_DVector &s)`
  elementwise add

`EST_DVector& operator*=(const double d)`
  elementwise multiply by scalar

`EST_DVector& operator/=(const double d)`
  elementwise divide by scalar

`EST_write_status save(const EST_String &filename, const EST_String &type)`
  save vector to file <tt> filename</tt>

`EST_read_status load(const EST_String &filename)`
  load vector from file <tt> filename</tt>

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

This class has no child classes.

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