39 enum tbtensor_type { tbint = 0, geminalcoeff = 1 };
41 tbtensor_type twobodytensor_type_;
45 if(twobodytensor_type==tbint) {
46 throw ProgrammingError(
"Error in TwoBodyTensorInfo::TwoBodyTensorInfo -- if twobodytensor_type==tbint TwoBodyOper::type must be specified.",__FILE__,__LINE__);
48 twobodytensor_type_ = twobodytensor_type;
52 tbtensor_type twobodytensor_type()
const {
return(twobodytensor_type_); }
54 if(twobodytensor_type_!=tbint)
55 throw ProgrammingError(
"Error in TwoBodyTensorInfo::twobodyint_type() -- twobodyint_type_ can only be returned if twobodytensor_type_==tbint.",__FILE__,__LINE__);
56 return(twobodyint_type_);
Provides information about the type of a two body tensor.
Definition twobodytensorinfo.h:37
type
types of known two-body operators
Definition operator.h:318