#include <EIG.h>
|
| EIG (BlockMatrix &) |
|
| EIG (Container &) |
|
| EIG (SUP &) |
|
virtual | ~EIG ()=default |
|
double | min () const |
|
double | max () const |
|
double | lsfunc (double) const |
|
void | setDim (int, int, int) |
|
BlockStructure & | operator+= (const BlockStructure< BlockType > &) |
|
BlockStructure & | operator-= (const BlockStructure< BlockType > &) |
|
BlockStructure & | daxpy (double alpha, const BlockStructure< BlockType > &) |
|
BlockStructure & | operator*= (double) |
|
BlockStructure & | operator/= (double) |
|
BlockType & | operator[] (int block) |
|
const BlockType & | operator[] (int block) const |
|
double & | operator() (int block, int i, int j) |
|
double | operator() (int block, int i, int j) const |
|
double & | operator() (int block, int index) |
|
double | operator() (int block, int index) const |
|
template<> |
double & | operator() (int block, int i, int j) |
|
template<> |
double | operator() (int block, int i, int j) const |
|
template<> |
double & | operator() (int block, int index) |
|
template<> |
double | operator() (int block, int index) const |
|
int | gnr () const |
|
int | gdim (int) const |
|
int | gdeg (int) const |
|
double | trace () const |
|
double | ddot (const BlockStructure< BlockType > &) const |
|
void | dscal (double alpha) |
|
void | fill_Random () |
|
void | fill_Random (int) |
|
virtual void | invert () |
|
virtual void | sqrt (int) |
|
virtual void | L_map (const BlockStructure< BlockType > &, const BlockStructure< BlockType > &) |
|
virtual BlockStructure< BlockType > & | mprod (const BlockStructure< BlockType > &, const BlockStructure< BlockType > &) |
|
void | symmetrize () |
|
void | sort () |
|
template<> |
void | sort () |
|
virtual void | sep_pm (BlockStructure< BlockType > &, BlockStructure< BlockType > &) |
|
Definition at line 34 of file EIG.h.
virtual doci2DM::EIG::~EIG |
( |
| ) |
|
|
virtualdefault |
template<class BlockType >
add the matrix matrix_pl times the constant alpha to this
- Parameters
-
alpha | the constant to multiply the matrix_pl with |
blockmat_pl | the BlockStructure to be multiplied by alpha and added to this |
Definition at line 172 of file BlockStructure.cpp.
template<class BlockType >
double BlockStructure::ddot |
( |
const BlockStructure< BlockType > & |
blocks_in | ) |
const |
|
inherited |
- Returns
- inproduct of (*this) blocks with blocks_in, defined as Tr (A B)
- Parameters
-
Definition at line 293 of file BlockStructure.cpp.
template<class BlockType >
void BlockStructure::dscal |
( |
double |
alpha | ) |
|
|
inherited |
Scale the blocks (*this) with parameter alpha
- Parameters
-
Definition at line 320 of file BlockStructure.cpp.
template<class BlockType >
void BlockStructure::fill_Random |
( |
| ) |
|
|
inherited |
template<class BlockType >
void BlockStructure::fill_Random |
( |
int |
seed | ) |
|
|
inherited |
template<class BlockType >
int BlockStructure::gdeg |
( |
int |
i | ) |
const |
|
inherited |
template<class BlockType >
int BlockStructure::gdim |
( |
int |
i | ) |
const |
|
inherited |
template<class BlockType >
int BlockStructure::gnr |
( |
| ) |
const |
|
inherited |
template<class BlockType >
void BlockStructure::invert |
( |
| ) |
|
|
virtualinherited |
Invert positive semidefinite symmetric blocks which is stored in (*this), original matrix (*this) is destroyed
Reimplemented in doci2DM::PHM.
Definition at line 308 of file BlockStructure.cpp.
template<class BlockType >
Multiply symmetric blocks object left en right with symmetric blocks map to form another symmetric blocks and put it in (*this): this = map*object*map
- Parameters
-
Definition at line 367 of file BlockStructure.cpp.
double EIG::lsfunc |
( |
double |
a | ) |
const |
double EIG::max |
( |
| ) |
const |
double EIG::min |
( |
| ) |
const |
template<class BlockType >
template<class BlockType>
template<class BlockType>
template<class BlockType>
template<class BlockType>
write access to your blocks, change the number in block "block", on row i and column j
- Parameters
-
block | The index of the block you want to access |
i | row number |
j | column number |
- Returns
- the entry on place block,i,j
Definition at line 214 of file BlockStructure.cpp.
read access to your blocks, read the number in block "block" on row i and column j
- Parameters
-
block | The index of the block you want to access |
i | row number |
j | column number |
- Returns
- the entry on place block,i,j
Definition at line 227 of file BlockStructure.cpp.
template<class BlockType >
template<class BlockType >
overload the += operator for matrices
- Parameters
-
blockmat_pl | The matrix you want to add to this |
Definition at line 143 of file BlockStructure.cpp.
template<class BlockType >
overload the -= operator for matrices
- Parameters
-
blockmat_pl | The matrix you want to deduct from this |
Definition at line 157 of file BlockStructure.cpp.
template<class BlockType >
/= operator overloaded: divide by a constant
- Parameters
-
c | the number to divide your matrix through |
Definition at line 186 of file BlockStructure.cpp.
template<class BlockType >
BlockType & BlockStructure::operator[] |
( |
int |
block | ) |
|
|
inherited |
[] overloaded, will return a reference to the block block in the blocks.
- Parameters
-
block | index of the block to be returned |
- Returns
- A reference to the Matrix object located on blocks[block].
Definition at line 91 of file BlockStructure.cpp.
template<class BlockType >
const BlockType & BlockStructure::operator[] |
( |
int |
block | ) |
const |
|
inherited |
[] overloaded, const version, will return a const reference to the block block in the blocks.
- Parameters
-
block | index of the block to be returned |
- Returns
- A reference to the Matrix object located on blocks[block].
Definition at line 102 of file BlockStructure.cpp.
template<class BlockType >
template<class BlockType >
void BlockStructure::setDim |
( |
int |
block, |
|
|
int |
dim, |
|
|
int |
degeneracy |
|
) |
| |
|
inherited |
function that allocates the memory of the blocks block with dimension dim sets and the degeneracy of the matrix
- Parameters
-
block | the index of the block that will be allocated |
dim | the dimension of the particular block to be allocated |
degeneracy | the degeneracy of block "block" |
Definition at line 76 of file BlockStructure.cpp.
template<class BlockType>
template<class BlockType >
void BlockStructure::sqrt |
( |
int |
option | ) |
|
|
virtualinherited |
Take the square root out of the positive semidefinite blocks, destroys original blocks, square root will be put in (*this)
- Parameters
-
option | = 1, positive square root, = -1, negative square root. |
Reimplemented in doci2DM::PHM.
Definition at line 353 of file BlockStructure.cpp.
template<class BlockType >
void BlockStructure::symmetrize |
( |
| ) |
|
|
inherited |
template<class BlockType >
double BlockStructure::trace |
( |
| ) |
const |
|
inherited |
- Returns
- the trace of the matrix, each block matrix is weighed with its degeneracy.
Definition at line 277 of file BlockStructure.cpp.
The documentation for this class was generated from the following files: