QMCPACK
cosciRep Class Reference
+ Collaboration diagram for cosciRep:

Public Member Functions

 cosciRep (std::string in_label, int nstates)
 
void printInfo (std::ostream &os, int &tot_state_count)
 

Public Attributes

std::string label
 
std::vector< ciStatestates
 

Detailed Description

Definition at line 62 of file DiracParser.h.

Constructor & Destructor Documentation

◆ cosciRep()

cosciRep ( std::string  in_label,
int  nstates 
)

Definition at line 55 of file DiracParser.cpp.

References states.

55 : label(in_label) { states.resize(nstates); }
std::string label
Definition: DiracParser.h:66
std::vector< ciState > states
Definition: DiracParser.h:67

Member Function Documentation

◆ printInfo()

void printInfo ( std::ostream &  os,
int &  tot_state_count 
)

Definition at line 57 of file DiracParser.cpp.

References label, and states.

58 {
59  os << " Representation: " << label << " with " << states.size() << " states" << std::endl;
60  os << "state# Energies and Ndets: " << std::endl;
61  for (int i = 0; i < states.size(); i++)
62  {
63  os << " " << tot_state_count << " " << states[i].energy << " " << states[i].coeffs.size() << std::endl;
64  tot_state_count++;
65  }
66 }
std::string label
Definition: DiracParser.h:66
std::vector< ciState > states
Definition: DiracParser.h:67

Member Data Documentation

◆ label

std::string label

Definition at line 66 of file DiracParser.h.

Referenced by printInfo().

◆ states

std::vector<ciState> states

Definition at line 67 of file DiracParser.h.

Referenced by cosciRep(), DiracParser::getCOSCI(), and printInfo().


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