sc::SCElementShiftDiagonal(3)
π¦ sc::SCElementShiftDiagonal β NAME π¦
sc::SCElementShiftDiagonal β bestie, this is an element op from MPQC (the manual page lives in section 3, iykyk) and it's literally the "shift the diagonal" girlie π
β¨ SYNOPSIS β¨
Inherits sc::SCElementOp π«Ά β so all that parent-class energy comes for free.
π Public Member Functions π
SCElementShiftDiagonal (double a)β constructor number one, takes adouble aand gets to work πΈSCElementShiftDiagonal (StateIn &)β constructor number two, the restore-from-a-StateInone πint has_side_effects ()β by default this returns nonzero. (More deets down in the docs section π)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 &)β the fallback routine that processes blocks; it gets called byprocess_specmembers that aren't overridden π₯
π Additional Inherited Members π
Yep β there's more stuff inherited from the base class, and it's chillin' in the "Additional Inherited Members" section. Free real estate, no cap π
π Member Function Documentation π
π int sc::SCElementShiftDiagonal::has_side_effects () [virtual]
By default this returns nonzero. And here's the important part, bestie: if the ElementOp specialization is gonna change any elements of the matrix, then this must be overridden to return nonzero. Like, no exceptions β the matrix is changing, so say so π«‘
Reimplemented from sc::SCElementOp.
π§ void sc::SCElementShiftDiagonal::save_data_state (StateOut &) [virtual]
Save the base classes (call save_data_state on 'em) and the members in the exact same order that the StateIn CTOR initializes them β order matters, fr fr, don't freestyle it π
This must be implemented by the derived class if the class has data. No data? Then you're off the hook.
Reimplemented from sc::SavableState.
π Author π
Generated automatically by Doxygen for MPQC from the source code. (So if the prose is a little stiff, blame the robot, not me π)
π Sign-off π
That's the whole vibe check, bestie β this page is Version 2.3.1, dated Sun Oct 4 2020, and she ate. Go shift some diagonals, slay, periodt π β¨π
π¦ 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