27#include <boost/numeric/ublas/matrix_sparse.hpp>
28#include <boost/numeric/ublas/matrix.hpp>
29#include <boost/numeric/ublas/vector.hpp>
35 typedef boost::numeric::ublas::compressed_matrix<
37 boost::numeric::ublas::row_major
41 typedef boost::numeric::ublas::matrix<double>
matrix_t;
43 typedef boost::numeric::ublas::vector<
boost::numeric::ublas::compressed_matrix< double, boost::numeric::ublas::row_major > sparse_matrix_t
Sparse matrix type definition.
RealDiracMatrix()
Default constructor (sets only NumOfRDMs and DimOfRDMs)
void transform(matrix_t &, short, double, sparse_matrix_t &, sparse_matrix_t &)
matrix_t symplex(const matrix_t &)
boost::numeric::ublas::matrix< double > matrix_t
Dense matrix type definition.
boost::numeric::ublas::vector< double, std::vector< double > > vector_t
Dense vector type definition.
sparse_matrix_t getRDM(short)
void update(matrix_t &sigma, short i, sparse_matrix_t &R, sparse_matrix_t &invR)
void diagonalize(matrix_t &, sparse_matrix_t &, sparse_matrix_t &)