|
Public Member Functions |
| DoubleMatrix (int r, int c) |
| Constructor for matrix of zeroes 1..r,1..c.
|
| DoubleMatrix (const DoubleMatrix &m) |
| Constructor sets = m.
|
| DoubleMatrix (const DoubleVector &v) |
| Makes diagonal square matrix: diagonal elements are from v, in order.
|
| ~DoubleMatrix () |
| Standard destructor.
|
int | displayRows () const |
| Routines for outputting size of matrix.
|
const DoubleMatrix & | operator= (const DoubleMatrix &v) |
| Sets matrix equal to v.
|
const DoubleMatrix & | operator= (const double &v) |
| Sets diagonal entries equal to v, rest are 0.
|
DoubleMatrix | operator+ (const DoubleMatrix &v) const |
| Standard Linear algebra calculations.
|
DoubleVector | operator * (const DoubleVector &v) const |
|
|
double | trace () const |
| trace must only be performed on a square matrix
|
double & | operator() (int i, int j) |
| to reference one element
|
DoubleMatrix | transpose () const |
| can be any size
|
void | swaprows (int i, int j) |
| Obvious elementary row/column operations.
|
void | associateOrderAbs (DoubleVector &v) |
double | display (int i, int j) const |
| ijth element
|
double | sumElements () const |
| Returns sum of absolute values of all elements.
|
void | symmetrise () |
| fills in bottom-left hand corner of a matrix
|
double | compare (const DoubleMatrix &a) const |
DoubleVector | diagVals () const |
| Just returns a vector filled with the diagonal values.
|
double | diagonalise (DoubleMatrix &u, DoubleMatrix &v, DoubleVector &w) const |
double | diagonaliseSym (ComplexMatrix &v, DoubleVector &w) const |
DoubleMatrix | inverse () const |
| returns inverse of a matrix
|
DoubleVector | sym2by2 (double &theta) const |
DoubleMatrix | apply (double(*fn)(double)) |
| Applies fn to every element of a matrix.
|
DoubleVector | asy2by2 (double &thetaL, double &thetaR) const |
| 2 by 2 asymmetric matrices
|
double | min (int &k, int &l) const |
| minimum element
|
double | nmin (int &k, int &l) const |
| next-to-minimum element
|
double | max (int &k, int &l) const |
void | displayMat (double **temp) const |
void | associateOrderAbs (DoubleMatrix &u, DoubleMatrix &v, DoubleVector &w) const |