#include <matrixSD.h>
Inheritance diagram for MatrixSD:
Public Methods | |
constructors and destructor | |
MatrixSD () | |
standard default constructor. | |
MatrixSD (const int nr, const double value=0.0) | |
standard constructor. | |
MatrixSD (const MatrixSD& B) | |
copy constructor. | |
~MatrixSD () | |
virtual destructor. | |
MatrixSD& | operator= (const double value) |
assignment with a constant value. | |
overloaded virtual methods of the Matrix base class | |
void | resize (const int nr, const double value=0.0) |
resize MatrixSD. | |
virtual int | nr () const |
number of rows. | |
virtual int | nr (const int i) const |
resize MatrixSD. | |
virtual int | nc () const |
number of columns. | |
virtual int | nc (const int i) const |
resize MatrixSD. | |
virtual Ref<double> | operator() (const int i, const int j=0) |
non constant, write access to elements. | |
virtual double | operator() (const int i, const int j=0) const |
constant, read only access to elements is overloaded. | |
virtual void | stream (ostream& s) |
output to stream. | |
MatrixSD | transpose () const |
return transposed Matrix, does nothing returns a copy. | |
void | multiply (const MatrixSD& A, const MatrixSD& B, const char TRANSA='N', const char TRANSB='N') |
Multiplication of two symmetric matrices destroys the symmetry. | |
void | multiply (const double value) |
multiply MatrixSD C with constant value and write to this Matrix. | |
void | multiply (const VectorD& x, VectorD& y, const double ALPHA=1.0, const double BETA=0.0) const |
multiplication y=alpha*this*x+beta*y, BLAS level 2. | |
void | CHdecompose () |
Cholesky CTC decomposition of a symmetric positive definite matrix. | |
void | CHsubstitute (MatrixC<double>& B) |
solve triangular Cholesky system by backsubstitution. | |
void | CHsolve (MatrixC<double>& B) |
solve linear equation system with a symmetric positive definite matrix. | |
void | CHinvert () |
inversion of a symmetric positive definite matrix. | |
Protected Methods | |
virtual double* | ref (const int i, const int j) const |
low level reference to data returns a pointer, use this with care. | |
virtual double | read (const int i, const int j) const |
low level read. | |
virtual void | write (const int i, const int j, const double v) |
low level write. | |
virtual void | add (const int i, const int j, const double v) |
low level add to. | |
virtual void | sub (const int i, const int j, const double v) |
low level sub from. | |
virtual void | mul (const int i, const int j, const double v) |
low level mul with. | |
virtual void | div (const int i, const int j, const double v) |
low level div by. |
Only the lower triangular part of the Matrix can be referenced directly. Access to the upper half of the Matrix will result in an error message and subsequent termination of the program.
|
standard default constructor.
|
|
standard constructor.
|
|
copy constructor.
|
|
virtual destructor.
|
|
assignment with a constant value.
|
|
resize MatrixSD.
|
|
number of rows.
|
|
resize MatrixSD.
Reimplemented from MatrixC. |
|
number of columns.
|
|
resize MatrixSD.
Reimplemented from MatrixC. |
|
non constant, write access to elements.
Reimplemented from MatrixC. |
|
constant, read only access to elements is overloaded.
Reimplemented from MatrixC. |
|
output to stream.
Reimplemented from MatrixC. |
|
return transposed Matrix, does nothing returns a copy.
Reimplemented from MatrixC. |
|
Multiplication of two symmetric matrices destroys the symmetry.
|
|
multiply MatrixSD C with constant value and write to this Matrix.
|
|
multiplication y=alpha*this*x+beta*y, BLAS level 2.
|
|
Cholesky CTC decomposition of a symmetric positive definite matrix.
|
|
solve triangular Cholesky system by backsubstitution.
|
|
solve linear equation system with a symmetric positive definite matrix.
|
|
inversion of a symmetric positive definite matrix.
|
|
low level reference to data returns a pointer, use this with care.
Reimplemented from MatrixC. |
|
low level read.
Reimplemented from MatrixC. |
|
low level write.
|
|
low level add to.
|
|
low level sub from.
|
|
low level mul with.
|
|
low level div by.
|