sc::SCElementAssign(3)
β¨ NAME β¨
sc::SCElementAssign β bestie, it's the element-op that assigns stuff, living its best life in the MPQC manual (that's the MPQC manual section 3, iykyk π
).
πΈ SYNOPSIS πΈ
okay so first things first: this whole vibe inherits sc::SCElementOp β that's the family tree, no cap π§¬
Inherits sc::SCElementOp.
π Public Member Functions π
SCElementAssign (double a)β the constructor that takes adouble a. Slay.SCElementAssign (StateIn &)β the other constructor, this one takes aStateIn &because we're being all serialized and cute about it β¨int has_side_effects ()β by default this returns nonzero. (more on this queen below π)void save_data_state (StateOut &)β save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.void process (SCMatrixBlockIter &)β this is the fallback routine to process blocks and is called byprocess_specmembers that are not overridden.
π¦ Additional Inherited Members π¦
yup, there's more β extra inherited members literally just exist here, inherited from the parent class. No extra details given, that's the whole tea π΅
π Member Function Documentation π
π int sc::SCElementAssign::has_side_effects () [virtual] π
By default this returns nonzero. And here's the important part, bestie, listen up π₯: if the ElementOp specialization will change any elements of the matrix, then this must be overridden to return nonzero.
So likeβ¦ if your op is out here touching matrix elements, you have to override this. Not optional. Periodt. π
Reimplemented from sc::SCElementOp.
β void sc::SCElementAssign::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 the rule, no cap: this must be implemented by the derived class if the class has data. Like if your class has data and you skip this? π bestie no. Implement it.
Reimplemented from sc::SavableState.
π Author π
Generated automatically by Doxygen for MPQC from the source code. So nobody hand-wrote this, it's Doxygen's main character moment fr fr π€β¨
π«Ά tiny reminder that all the flag-less, constructor-y, virtual-function-y details above are exactly as written β I would never mess with the lore.
π that's the whole page, diva π β this icon was Version 2.3.1, dated Sun Oct 4 2020, and the source? straight-up generated for MPQC. see you in the next manpage, mwah ππ¦πΈ
π¦ 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