sc::SphericalTransform(3)
okay so you're on the sc::SphericalTransform(3) page of the MPQC manual, and honestly? it's a whole base-class moment. π
β¨
πΈ NAME πΈ
sc::SphericalTransform is literally the base class for a container that holds a sparse Cartesian-to-solid-harmonic basis function transformation. it's giving "organized container for transform components," no cap. π«Ά
π¦ SYNOPSIS π¦
#include <transform.h>
Inherited by the iconique crew: sc::ISphericalTransform, sc::SphericalTransformCCA, sc::SphericalTransformCints, and sc::SphericalTransformV3. π
β¨ Public Member Functions β¨
void add (int a, int b, int c, double coef, int pureindex)β adds anotherSphericalTransformComponentto the mix. one more component, slay. πint cartindex (int i) constβ hands you the Cartesian basis function index of component i. π₯int pureindex (int i) constβ hands you the solid harmonic basis function index of component i. π«double coef (int i) constβ returns the transform coefficient of component i. the math tea βint a (int i) constβ returns the Cartesian basis function's x exponent of component i. x is that girl. β¨int b (int i) constβ returns the Cartesian basis function's y exponent of component i. y, periodt. πint c (int i) constβ returns the Cartesian basis function's z exponent of component i. z said "i'm here too." π¦int l () constβ returns the angular momentum. iconic angular momentum behavior. πint n () constβ returns the number of components in the transformation. count 'em, bestie. π’virtual SphericalTransformComponent * new_components ()=0β this must createSphericalTransformComponent's of the appropriate specialization. that's the assignment, no skipping. π«‘
π§ Protected Member Functions π§
SphericalTransform (int l, int subl=-1)β constructs theSphericalTransformfor the given Cartesian angular momentumland solid harmonic angular momentumsubl. protected, so this is inner-circle behavior. πvirtual void init ()β determines all of the components of the transformation. the default setup girlie. β¨
π Protected Attributes π
int n_int l_int subl_SphericalTransformComponent * components_
these are the protected data members, bestie. handle with care and good vibes. π«Ά
π Detailed Description π
same base-class tea as NAME: this is a base class for a container for a sparse Cartesian to solid harmonic basis function transformation. it's the parent container, not the final glow-up. π
π Constructor & Destructor Documentation π
πΈ sc::SphericalTransform::SphericalTransform (int l, int subl = -1) πΈ
[protected] β this constructs the SphericalTransform for the given Cartesian angular momentum l and solid harmonic angular momentum subl. Usually, l and subl will be the same. They would differ when the S component of a D Cartesian shell or the P component of an F Cartesian shell is desired, for example β see the natural atomic orbital code for an example of such use. π§
β οΈ caveat, bestie: the init member must be called to complete initialization. don't leave it half-done. π
π Member Function Documentation π
π virtual void sc::SphericalTransform::init () β [protected], [virtual]
This determines all of the components of the transformation. It should be possible to implement the SphericalTransformComponent::init specialization in such a way that the default SphericalTransform::init can be used. Reimplemented in sc::ISphericalTransform. periodt. π₯
π«Ά Author π«Ά
Generated automatically by Doxygen for MPQC from the source code. so like, the robots wrote the author line, not me. π€π
mwah π β version 2.3.1, dated Sun Oct 4 2020, from the MPQC manual, bestie. that's the footer tea and we're done. πβ¨
π¦ 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