template<class Type> class DiagMatrix : public Matrix <Type> a diagonal matrix class
| DiagMatrix () a default constructor | |
| DiagMatrix (int m) construct a m x m diagonal matrix | |
| DiagMatrix (const Vector <Type>& x) construct a DiagMatrix with diagonal elements the same as the Vector | |
| DiagMatrix (const DiagMatrix <Type>& A) construct an identical DiagMatrix | |
| matrixType () const returns the Matrix Type | |
| max () const returns the maximum element on the diagonal | |
| min () const returns the minimum element on the diagonal | |
| indexMax () const returns the index of the maximum diagonal element | |
| indexMin () const returns the index of the minimum diagonal element | |
| diagVector () const returns the diagonal as a Vector | |
| rowVector (int i) const returns the $i$th-row vector | |
| colVector (int j) const returns the $j$th-column vector | |
| size () const fetch size of the DiagMatrix | |
| operator[] (int i) returns the $i$th diagonal element, re-writable | |
| operator[] (int i) const returns the $i$th diagonal element, non re-writable | |
| operator() (char*, int j) sum across the $j$th-row | |
| operator() (int i, char*) sum across the $i$th-column | |
| rowMax (int ir) const | |
| rowMin (int ir) const | |
| colMax (int ic) const | |
| colMin (int ic) const | |
| operator= (const DiagMatrix <Type>&) Overloading operators | |
| operator= (const Vector <Type>&) | |
| operator= (const Type) | |
| operator= (const Type*) | |
| operator+= (const DiagMatrix <Type>&) | |
| operator-= (const DiagMatrix <Type>&) | |
| operator+= (const Type) | |
| operator-= (const Type) | |
| operator*= (const Type) | |
| operator/= (const Type) | |
| operator<< (ostream&, const DiagMatrix <Type>&) friend functions for I/O streams | |
| operator* (const DiagMatrix <Type>& d, const Vector <Type>& x) friend functions, DiagMatrix * Vector | |
| operator* (const Vector <Type>& x, const DiagMatrix <Type>& d) friend function, Vector * DiagMatrix | |
| atdotx (const Vector <Type>& v) friend function, G(transpose)axpy | |
| adotx (const Vector <Type>& v) friend function, Gaxpy |
a diagonal matrix class
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling