sc::SumMolecularEnergy(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸŽ€ 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 a Ref< KeyVal > &. classic.
  • SumMolecularEnergy (StateIn &) β€” the other constructor, this one takes a StateIn &. gotta have options, y'know?
  • void save_data_state (StateOut &) β€” save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR 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 a Ref< 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 (with save_data_state) and the members in the same order that the StateIn CTOR 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