SC_TBGRAD(3)
π sc::TBGrad< T > β the manual page, bestie edition π
okay so picture this: it's a page from the Library Functions Manual, section 3, and it's all about sc::TBGrad< T >. that's the whole vibe. it's a template, it's a thread, and it's here to do grad things. no cap. β¨
πΈ NAME πΈ
sc::TBGrad< T > β that's literally it, that's the name, she's serving template-class realness and we love her for it π
π¦ SYNOPSIS π¦
she's a nepo baby of the class hierarchy, and also a parent herself:
- Inherits
sc::Threadπ - Inherited by
sc::LocalTBGrad< T >πΌ
β¨ Public Member Functions β¨
here's what she can actually do, and yes every single one of these matters:
TBGrad (T &t, double ex=1.0)β the constructor, bestie. you hand her aT &tand optionally adouble ex, which defaults to1.0if you don't feel like specifying it. lowkey generous of her πvoid set_scale (double &coulombscale, double &exchangescale, int i, int j, int k, int l) constβ she takes yourcoulombscale, yourexchangescale, and four whole ints (i,j,k,l, in that exact order, don't get cute), and she sets the scale. and she does itconst, so she's not touching her own state, just yours. iconic behaviour π«Ά
π Public Member Functions inherited from sc::Thread π
she got these from her parent and she's not gonna pretend otherwise:
virtual void run ()=0β pure virtual, so it's giving "figure it out yourself, subclass." and to be clear about when it fires: this is called with the Thread is run from a ThreadGrp. that's the exact wording, we're keeping it π
π Protected Attributes π
the private-ish little stash, protected-style:
T & contributionβ a reference to aT. it's right there.double exchange_fractionβ adouble, and it's exactly what it sounds like: the exchange fraction.
π Additional Inherited Members π
more stuff she got from sc::Thread, specifically the static corner:
β Static Public Member Functions inherited from sc::Thread β
static void * run_Thread_run (void *thread)β a static function that takes avoid *threadand hands you back avoid *. static. public. inherited. we move. π₯
π Author π
Generated automatically by Doxygen for MPQC from the source code.
so like, nobody hand-wrote this, a robot did it, and honestly? slay, robot π€β¨
and that's the whole page, bestie. no notes. periodt. π
this was brought to you by MPQC, Version 2.3.1, and the page itself is sc::TBGrad< T >(3) β k bye, love u, go read your source code π¦π
π¦ where this page comes from
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms