sc::HCoreWfn(3)

๐Ÿ“ฆ
version 2.3.1 ยท 5 versions
, in ubuntu jammy

๐Ÿ’… sc::HCoreWfn(3) โ€” the MPQC glow-up, bestie edition โœจ

Okay so real talk, this is the manual page for sc::HCoreWfn from MPQC โ€” she's a whole class, she's got member functions, she's giving quantum chemistry main character energy, and we're gonna get into all of it. ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

sc::HCoreWfn โ€” no cap, that's literally the name, that's the class, and she's iconic for it. ๐Ÿ’–


โœจ SYNOPSIS โœจ

Okay so first thing you need to know: she inherits from sc::OneBodyWavefunction. So she's part of the family, she's got that lineage, she's carrying the OneBodyWavefunction DNA. Slay. ๐Ÿ‘‘


๐Ÿฆ‹ Public Member Functions ๐Ÿฆ‹

These are the functions she's serving on main, all public, all ready for you:

  • HCoreWfn (StateIn &) โ€” constructor alert! ๐Ÿšจ Takes a StateIn &, does the state thing, very demure, very StateIn-coded.
  • HCoreWfn (const Ref< KeyVal > &) โ€” another constructor, this time taking a const Ref< KeyVal > &. Two constructors, two vibes, both valid. โœจ
  • void save_data_state (StateOut &) โ€” saves the state, we love a function that handles her business. More on this below ๐Ÿ‘‡
  • double occupation (int irrep, int vectornum) โ€” returns the occupation, takes two ints like the queen she is. Details below ๐Ÿ‘‡
  • RefSCMatrix oso_eigenvectors () โ€” returns the orthogonal MO (columns) to orthogonal-SO (rows) transformation matrix. That's the whole description, I'm not gonna mess with it, it's giving linear algebra realness. ๐Ÿงฎ
  • RefDiagSCMatrix eigenvalues () โ€” returns the MO basis eigenvalues. Simple, clean, eigenvalues. ๐Ÿ’œ
  • RefSymmSCMatrix density () โ€” returns the SO density. That's it, that's the density. ๐Ÿ“
  • int spin_polarized () โ€” returns 1 if the alpha density is not equal to the beta density. Not equal! Important distinction, fr fr. ๐Ÿ”ฅ
  • int spin_unrestricted () โ€” returns 1 if the alpha orbitals are not equal to the beta orbitals. Again with the not-equal, we love a specific conditional. ๐Ÿ’€
  • int value_implemented () const โ€” gives you the tea on the availability of values, gradients, and hessians. She's the info desk for what's actually implemented. ๐Ÿ™ˆ

๐Ÿงš Additional Inherited Members ๐Ÿงš

She's got more where that came from, but those are the Additional Inherited Members โ€” inherited, so they came from the family, and they're not listed out in detail here. You know how it is. ๐Ÿ’…


๐ŸŒˆ Member Function Documentation ๐ŸŒˆ

๐ŸŽ€ double sc::HCoreWfn::occupation (int irrep, int vectornum) [virtual] ๐ŸŽ€

Okay so this one returns the occupation, which โ€” if you were wondering โ€” is the whole point. The irreducible representation and the vector number within that representation are given as arguments. So you hand her an irrep and a vectornum, she hands you the occupation back. Iconic behavior, honestly.

Also she's [virtual], and she implements sc::OneBodyWavefunction. So this is her fulfilling the family contract. ๐Ÿซถ


๐ŸŽ€ void sc::HCoreWfn::save_data_state (StateOut &) [virtual] ๐ŸŽ€

So what this does โ€” and I need you to pay attention because this is the important part โ€” she saves the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. Same order. Do not mess with the order, that's the whole system. ๐Ÿ˜ค

And here's the real one: this must be implemented by the derived class if the class has data. So if you're deriving and you've got data, you have to implement this. It's not a suggestion, it's a requirement, it's mandatory, periodt. ๐Ÿ’€

She's [virtual] and she's reimplemented from sc::OneBodyWavefunction. Going up the chain, doing the work. ๐Ÿ‘‘


๐ŸŒธ Author ๐ŸŒธ

Generated automatically by Doxygen for MPQC from the source code. So like, nobody typed this by hand, Doxygen did, and honestly? Doxygen ate. ๐Ÿค–โœจ


So yeah, that's the whole page bestie โ€” sc::HCoreWfn in all her glory: two constructors, save_data_state, occupation, oso_eigenvectors, eigenvalues, density, spin_polarized, spin_unrestricted, and value_implemented, all inheriting from sc::OneBodyWavefunction, all documented, all here, no details skipped, we kept every single one. ๐Ÿซถ

Version 2.3.1 โ€” dated Sun Oct 4 2020 โ€” that's the source/version and date, and that's the cute sign-off, mwah ๐Ÿ’‹. Go forth and compute, bestie. ๐Ÿฆ‹๐Ÿ’–

๐Ÿ“ฆ where this page comes from