sc::HCoreWfn(3)
๐ 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 aStateIn &, does the state thing, very demure, very StateIn-coded.HCoreWfn (const Ref< KeyVal > &)โ another constructor, this time taking aconst 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 ()โ returns1if the alpha density is not equal to the beta density. Not equal! Important distinction, fr fr. ๐ฅint spin_unrestricted ()โ returns1if 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
- 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