Go to the first, previous, next, last section, table of contents.

Arrays

Constructors and Assignment

: {}Array (void)
: {}Array (int n)
: {}Array (int n, const T &val)
: {}Array (const Array<T> &a)

: Array<T>& operator = (const Array<T> &a)

: int capacity (void) const
: int length (void) const

: T& elem (int n)
: T& checkelem (int n)
: T& operator () (int n)

: void resize (int n)
: void resize (int n, const T &val)

: const T *data (void) const

: {}Array2 (void)
: {}Array2 (int n, int m)
: {}Array2 (int n, int m, const T &val)
: {}Array2 (const Array2<T> &a)
: {}Array2 (const DiagArray<T> &a)

: Array2<T>& operator = (const Array2<T> &a)

: int dim1 (void) const
: int rows (void) const

: int dim2 (void) const
: int cols (void) const
: int columns (void) const

: T& elem (int i, int j)
: T& checkelem (int i, int j)
: T& operator () (int i, int j)

: void resize (int n, int m)
: void resize (int n, int m, const T &val)

: Array3 (void)
: Array3 (int n, int m, int k)
: Array3 (int n, int m, int k, const T &val)
: Array3 (const Array3<T> &a)

: Array3<T>& operator = (const Array3<T> &a)

: int dim1 (void) const
: int dim2 (void) const
: int dim3 (void) const

: T& elem (int i, int j, int k)
: T& checkelem (int i, int j, int k)
: T& operator () (int i, int j, int k)

: void resize (int n, int m, int k)
: void resize (int n, int m, int k, const T &val)

: {}DiagArray (void)
: {}DiagArray (int n)
: {}DiagArray (int n, const T &val)
: {}DiagArray (int r, int c)
: {}DiagArray (int r, int c, const T &val)
: {}DiagArray (const Array<T> &a)
: {}DiagArray (const DiagArray<T> &a)

: DiagArray<T>& operator = (const DiagArray<T> &a)

: int dim1 (void) const
: int rows (void) const

: int dim2 (void) const
: int cols (void) const
: int columns (void) const

: T& elem (int r, int c)
: T& checkelem (int r, int c)
: T& operator () (int r, int c)

: void resize (int n, int m)
: void resize (int n, int m, const T &val)

The real and complex ColumnVector and RowVector classes all have the following functions. These will eventually be part of an MArray<T> class, derived from the Array<T> class. Then the ColumnVector and RowVector classes will be derived from the MArray<T> class.

Element by element vector by scalar ops.

: friend RowVector operator + (const RowVector &a, const double &s)
: friend RowVector operator - (const RowVector &a, const double &s)
: friend RowVector operator * (const RowVector &a, const double &s)
: friend RowVector operator / (const RowVector &a, const double &s)

Element by element scalar by vector ops.

: friend RowVector operator + (const double &s, const RowVector &a)
: friend RowVector operator - (const double &s, const RowVector &a)
: friend RowVector operator * (const double &s, const RowVector &a)
: friend RowVector operator / (const double &s, const RowVector &a)

Element by element vector by vector ops.

: friend RowVector operator + (const RowVector &a, const RowVector &b)
: friend RowVector operator - (const RowVector &a, const RowVector &b)

: friend RowVector product (const RowVector &a, const RowVector &b)
: friend RowVector quotient (const RowVector &a, const RowVector &b)

Unary MArray ops.

: friend RowVector operator - (const RowVector &a)

The Matrix classes share the following functions. These will eventually be part of an MArray2<T> class, derived from the Array2<T> class. Then the Matrix class will be derived from the MArray<T> class.

Element by element matrix by scalar ops.

: friend Matrix operator + (const Matrix &a, const double &s)
: friend Matrix operator - (const Matrix &a, const double &s)
: friend Matrix operator * (const Matrix &a, const double &s)
: friend Matrix operator / (const Matrix &a, const double &s)

Element by element scalar by matrix ops.

: friend Matrix operator + (const double &s, const Matrix &a)
: friend Matrix operator - (const double &s, const Matrix &a)
: friend Matrix operator * (const double &s, const Matrix &a)
: friend Matrix operator / (const double &s, const Matrix &a)

Element by element matrix by matrix ops.

: friend Matrix operator + (const Matrix &a, const Matrix &b)
: friend Matrix operator - (const Matrix &a, const Matrix &b)

: friend Matrix product (const Matrix &a, const Matrix &b)
: friend Matrix quotient (const Matrix &a, const Matrix &b)

Unary matrix ops.

: friend Matrix operator - (const Matrix &a)

The DiagMatrix classes share the following functions. These will eventually be part of an MDiagArray<T> class, derived from the DiagArray<T> class. Then the DiagMatrix class will be derived from the MDiagArray<T> class.

Element by element MDiagArray by scalar ops.

: friend DiagMatrix operator * (const DiagMatrix &a, const double &s)
: friend DiagMatrix operator / (const DiagMatrix &a, const double &s)

Element by element scalar by MDiagArray ops.

: friend DiagMatrix operator * (const double &s, const DiagMatrix &a)

Element by element MDiagArray by MDiagArray ops.

: friend DiagMatrix operator + (const DiagMatrix &a, const DiagMatrix &b)
: friend DiagMatrix operator - (const DiagMatrix &a, const DiagMatrix &b)

: friend DiagMatrix product (const DiagMatrix &a, const DiagMatrix &b)

Unary MDiagArray ops.

: friend DiagMatrix operator - (const DiagMatrix &a)


Go to the first, previous, next, last section, table of contents.