votca 2024.2-dev
Loading...
Searching...
No Matches
votca::xtp::Symmetric_Matrix Class Reference

#include <symmetric_matrix.h>

Collaboration diagram for votca::xtp::Symmetric_Matrix:

Public Member Functions

 Symmetric_Matrix ()=default
 
 Symmetric_Matrix (Index dim)
 
 Symmetric_Matrix (const Eigen::MatrixXd &full)
 
Index size () const
 
double TraceofProd (const Symmetric_Matrix &a) const
 
void AddtoEigenMatrix (Eigen::MatrixXd &full, double factor=1.0) const
 
void AddtoEigenUpperMatrix (Eigen::SelfAdjointView< Eigen::MatrixXd, Eigen::Upper > &upper, double factor=1.0) const
 
Eigen::MatrixXd FullMatrix () const
 
Eigen::MatrixXd UpperMatrix () const
 
double & operator() (Index i, Index j)
 
const double & operator() (Index i, Index j) const
 

Private Member Functions

Index index (Index i, Index j) const
 

Private Attributes

std::vector< double > data
 
Index dimension
 

Friends

std::ostream & operator<< (std::ostream &out, const Symmetric_Matrix &a)
 

Detailed Description

Definition at line 37 of file symmetric_matrix.h.

Constructor & Destructor Documentation

◆ Symmetric_Matrix() [1/3]

votca::xtp::Symmetric_Matrix::Symmetric_Matrix ( )
default

◆ Symmetric_Matrix() [2/3]

votca::xtp::Symmetric_Matrix::Symmetric_Matrix ( Index dim)
inline

Definition at line 40 of file symmetric_matrix.h.

◆ Symmetric_Matrix() [3/3]

votca::xtp::Symmetric_Matrix::Symmetric_Matrix ( const Eigen::MatrixXd & full)

Definition at line 29 of file symmetric_matrix.cc.

Member Function Documentation

◆ AddtoEigenMatrix()

void votca::xtp::Symmetric_Matrix::AddtoEigenMatrix ( Eigen::MatrixXd & full,
double factor = 1.0 ) const

Definition at line 73 of file symmetric_matrix.cc.

◆ AddtoEigenUpperMatrix()

void votca::xtp::Symmetric_Matrix::AddtoEigenUpperMatrix ( Eigen::SelfAdjointView< Eigen::MatrixXd, Eigen::Upper > & upper,
double factor = 1.0 ) const

Definition at line 89 of file symmetric_matrix.cc.

◆ FullMatrix()

Eigen::MatrixXd votca::xtp::Symmetric_Matrix::FullMatrix ( ) const

Definition at line 101 of file symmetric_matrix.cc.

◆ index()

Index votca::xtp::Symmetric_Matrix::index ( Index i,
Index j ) const
private

Definition at line 128 of file symmetric_matrix.cc.

◆ operator()() [1/2]

double & votca::xtp::Symmetric_Matrix::operator() ( Index i,
Index j )
inline

Definition at line 62 of file symmetric_matrix.h.

◆ operator()() [2/2]

const double & votca::xtp::Symmetric_Matrix::operator() ( Index i,
Index j ) const
inline

Definition at line 64 of file symmetric_matrix.h.

◆ size()

Index votca::xtp::Symmetric_Matrix::size ( ) const
inline

Definition at line 47 of file symmetric_matrix.h.

◆ TraceofProd()

double votca::xtp::Symmetric_Matrix::TraceofProd ( const Symmetric_Matrix & a) const

Definition at line 56 of file symmetric_matrix.cc.

◆ UpperMatrix()

Eigen::MatrixXd votca::xtp::Symmetric_Matrix::UpperMatrix ( ) const

Definition at line 117 of file symmetric_matrix.cc.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const Symmetric_Matrix & a )
friend

Definition at line 40 of file symmetric_matrix.cc.

Member Data Documentation

◆ data

std::vector<double> votca::xtp::Symmetric_Matrix::data
private

Definition at line 73 of file symmetric_matrix.h.

◆ dimension

Index votca::xtp::Symmetric_Matrix::dimension
private

Definition at line 74 of file symmetric_matrix.h.


The documentation for this class was generated from the following files: