sc::SCElementShiftDiagonal(3)

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

πŸ¦‹ 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 a double a and gets to work 🌸
  • SCElementShiftDiagonal (StateIn &) β€” constructor number two, the restore-from-a-StateIn one πŸŽ€
  • 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 (with save_data_state) and the members in the same order that the StateIn CTOR initializes them ⭐
  • void process (SCMatrixBlockIter &) β€” the fallback routine that processes blocks; it gets called by process_spec members 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