21#ifndef VOTCA_XTP_SYMMETRIC_MATRIX_H
22#define VOTCA_XTP_SYMMETRIC_MATRIX_H
42 data.resize((dim + 1) * dim / 2);
54 Eigen::SelfAdjointView<Eigen::MatrixXd, Eigen::Upper>& upper,
55 double factor = 1.0)
const;
Symmetric_Matrix(Index dim)
Index index(Index i, Index j) const
void AddtoEigenUpperMatrix(Eigen::SelfAdjointView< Eigen::MatrixXd, Eigen::Upper > &upper, double factor=1.0) const
Symmetric_Matrix()=default
double TraceofProd(const Symmetric_Matrix &a) const
Eigen::MatrixXd FullMatrix() const
double & operator()(Index i, Index j)
std::vector< double > data
void AddtoEigenMatrix(Eigen::MatrixXd &full, double factor=1.0) const
friend std::ostream & operator<<(std::ostream &out, const Symmetric_Matrix &a)
Eigen::MatrixXd UpperMatrix() const
const double & operator()(Index i, Index j) const
base class for all analysis tools