sc::SumMolecularEnergy(3)
π sc::SumMolecularEnergy π
okay so bestie, welcome to the sc::SumMolecularEnergy page β this is straight out of the MPQC manual (section 3, the library-functions girlies), and yes, we're gonna get through it together. grab a boba, this one's actually kinda cozy. π§β¨
β¨ NAME β¨
sc::SumMolecularEnergy β the class that literally just sums molecular energies, and honestly? iconic behavior. π
π¦ SYNOPSIS π¦
Inherits sc::MolecularEnergy.
and it's Inherited by sc::MP2BasisExtrap.
like, the family tree is giving main character energy already. πΈ
π Public Member Functions π
SumMolecularEnergy (const Ref< KeyVal > &)β the constructor that takes aRef< KeyVal > &. classic.SumMolecularEnergy (StateIn &)β the other constructor, this one takes aStateIn &. gotta have options, y'know?void save_data_state (StateOut &)β save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them. order matters, bestie, do NOT freestyle this one π«Άint value_implemented () constβ info about the availability of values, gradients, and hessians. it's the vibe check for whether the numbers are actually there.int gradient_implemented () constβ same energy, but for gradients. ngl, no description given, it just is.int hessian_implemented () constβ and again, but hessians. π₯void set_x (const RefSCVector &)β "set and retrieve the coordinate values." yes, that's the whole description. short and slay. β¨
π Protected Member Functions π
void compute ()β recompute at least the results that have compute true and are not already computed. more on her below π
π Protected Attributes π
int n_β an int, and honestly the underscore is doing all the work. πRef< MolecularEnergy > * mole_β a pointer to aRef< MolecularEnergy >. yes,mole_. yes, like the animal. no cap.double * coef_β a pointer to doubles, the coefficients. she's giving math. π
β Additional Inherited Members β
yep, there are more. you get the inherited ones too, because inheritance is the whole plot of this class. π
π Member Function Documentation π
πΈ void sc::SumMolecularEnergy::compute () [protected], [virtual]
bestie, listen: Recompute at least the results that have compute true and are not already computed.
and the crucial caveat β "This should only be called by Result's members." like, this is not a DIY situation, she's got a very specific guest list. π
- Implements
sc::Compute. - Reimplemented in
sc::MP2BasisExtrap.
π¦ void sc::SumMolecularEnergy::save_data_state (StateOut &) [virtual]
Save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.
and here's the extra lore: this must be implemented by the derived class if the class has data. so if you're a derived class with data, this is your moment, don't ghost it. π«Ά
- Reimplemented from
sc::MolecularEnergy. - Reimplemented in
sc::MP2BasisExtrap.
π Author π
Generated automatically by Doxygen for MPQC from the source code. so like. she wasn't even written, she was born by a doc generator. humble queen. π
okay that's the whole page, bestie β every flag, every signature, every reimplementation note, all of it, preserved and glowing. π
Version 2.3.1 β dated Sun Oct 4 2020 β mwah, that's the sign-off, drink some water and go read sc::MolecularEnergy(3) next. π§π
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms