template<class Type> class DensMatrix : public Matrix <Type>

a dense matrix class template

Inheritance:


public members:

DensMatrix ()
the default constructor
DensMatrix ( int m, int n )
a constructor with specified number of rows and columns
int m
number of rows
int n
number of columns
DensMatrix ( int m, const Vector <Type>* p )
construct a densmatrix which has the contant of a vector array
int m
number of rows
const Vector <Type>* p
pointer to a vector array
DensMatrix (const Vector <Type>& p )
construct a densmatrix which non-zero elements only at the diagonal
DensMatrix (const DensMatrix <Type>& A)
copy a const dense matrix to a new object
const char* matrixType () const
type name of the dense matrix
DensMatrix <Type> adjoint ()
adjoint of the DensMatrix
Vector <Type>& operator[] (int i)
access the ith row of the matrix, writable
Vector <Type> operator[] (int i) const
access the ith row of the matrix, unwritable
Vector <Type> rowVector (int i) const
access the ith row of the matrix, unwritable
Vector <Type> colVector (int j) const
access the jth column of the matrix, unwritable
DensMatrix <Type>& chaSize (int, int)
augmenting the DensMatrix
Type operator() ( char*, int j)
sum across rows
char*
anything, could be empty
int j
the row index
Type operator() ( int i, char*)
sum across columns
int i
the column index
char*
anything, could be empty
Type rowMax (int i) const
return the largest element of the ith row
Type rowMin (int i) const
return the smallest element of the ith row
Type colMax (int j) const
return the largest element of the jth col
Type colMin (int j) const
return the smallest element of the jth col
DensMatrix <Type> operator- ()
Negating Operator
DensMatrix <Type>& operator= (const DensMatrix <Type>&)
Assigning values of dense Matrix
DensMatrix <Type>& operator= (const Vector <Type>&)
Assigning values of a Vector to the diagonal
DensMatrix <Type>& operator= (const Type)
Assigning a constant value
DensMatrix <Type>& operator+= (const DensMatrix <Type>&)
Add a dense matrix
DensMatrix <Type>& operator+= (const Type)
Increment values by a constant
DensMatrix <Type>& operator-= (const DensMatrix <Type>&)
Subtract a dense matrix
DensMatrix <Type>& operator-= (const Type)
Decrement by a constant
DensMatrix <Type>& operator*= (const Type)
Multiply by a constant
DensMatrix <Type>& operator/= (const Type)
Divide by a constant
DensMatrix <Type>& addVal (const int i, const Vector <Type>&)
insert a vector at the ith row
DensMatrix <Type>& addVal (const int i, const DensMatrix <Type>&)
insert a dense matrix starting from the ith row
DensMatrix <Type>& addVal (const Vector <Type>&, const int j)
insert a vector at the jth column
DensMatrix <Type>& addVal (const DensMatrix <Type>&, const int j)
insert a dense matrix starting from the jth column
Vector <Type> adotx (const Vector <Type>& x)
saxpy, the current matrix $\times$ vector $x$
Vector <Type> atdotx (const Vector <Type>& x)
saxpy, the transpose of current matrix $\times$ vector $x$
friend ostream& operator<< (ostream& os, const DensMatrix <Type>& A)
a friend, write matrix $A$ to stream $os$
friend Vector <Type> operator* (const DensMatrix <Type>& A, const Vector <Type>& x)
Matrix and Vector products, $A \times x$
friend Vector <Type> operator* (const Vector <Type>& x, const DensMatrix <Type>& A)
Matrix and Vector products, $A^T \times x$

Inherited from Matrix:

public members:

int numOfRows() const
int numOfCols() const

Documentation

This is a class of regular dense matrix stored row-wise.


this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling