sc::SCElementAssign(3)

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

✨ 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 a double a. Slay.
  • SCElementAssign (StateIn &) β€” the other constructor, this one takes a StateIn & 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 (with save_data_state) and the members in the same order that the StateIn CTOR initializes them.
  • void process (SCMatrixBlockIter &) β€” this is the fallback routine to process blocks and is called by process_spec members 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