sc::RefSCVector(3)
π sc::RefSCVector β from the MPQC manual, section 3
okay so bestie, buckle up β this is the page for sc::RefSCVector, and yes it lives in section 3 of the MPQC manual. it's a whole vibe. let's go π«Ά
β¨ NAME β¨
sc::RefSCVector β the RefSCVector class is a smart pointer to an SCVector specialization. that's it, that's the whole name section, and it ate π
π¦ SYNOPSIS π¦
#include <matrix.h>
Inherits sc::Ref< SCVector >. yes bestie, it's a Ref, it's giving "I hold a pointer and I'm responsible about it" β¨
πΈ Public Member Functions πΈ
RefSCVector ()β initializes the vector pointer to0. starts out as a literal nobody, no cap.RefSCVector (const RefSCVector &v)β make this andvrefer to the sameSCVector. sharing is caring πRefSCVector (SCVector *v)β make this refer tov.RefSCVector & operator= (SCVector *v)β make this refer tov.RefSCVector & operator= (const RefSCVector &v)β make this andvrefer to the sameSCVector. matchy matchy πRefSCVector (const RefSCDimension &dim, const Ref< SCMatrixKit > &)β create a vector with dimension dim.SCVectordouble operator() (int) constβ return an l-value that can be used to assign or retrieve an element. index era πSCVectordouble operator[] (int) constβ return an l-value that can be used to assign or retrieve an element. same energy, different brackets π¦RefSCVector operator+ (const RefSCVector &a) constβ add two vectors. math besties rise πRefSCVector operator- (const RefSCVector &a) constβ subtract two vectors.RefSCVector operator* (double) constβ scale a vector.RefSCMatrix outer_product (const RefSCVector &v) constβ return the outer product betweenthisandv.RefSymmSCMatrix symmetric_outer_product () constβ the outer product ofthiswith itself is a symmetric matrix. iconic self-love moment πvoid set_element (int i, double val) constvoid accumulate_element (int i, double val) constdouble get_element (int) constint n () constRefSCDimension dim () constRef< SCMatrixKit > kit () constRefSCVector clone () constRefSCVector copy () constdouble maxabs () constdouble scalar_product (const RefSCVector &) constdouble dot (const RefSCVector &) constvoid normalize () constvoid randomize () constvoid assign (const RefSCVector &v) constvoid assign (double val) constvoid assign (const double *v) constvoid convert (double *) constvoid scale (double val) constvoid accumulate (const RefSCVector &v) constvoid accumulate_product (const RefSymmSCMatrix &, const RefSCVector &)void accumulate_product (const RefSCMatrix &, const RefSCVector &)void element_op (const Ref< SCElementOp > &op) constvoid element_op (const Ref< SCElementOp2 > &, const RefSCVector &) constvoid element_op (const Ref< SCElementOp3 > &, const RefSCVector &, const RefSCVector &) constvoid print (std::ostream &out) constvoid print (const char *title=0, std::ostream &out=ExEnv::out0(), int precision=10) constvoid save (StateOut &)void restore (StateIn &)β restores the matrix fromStateInobject. the vector must have been initialized already. π not me warning you twice, but like, it matters.
π Additional Inherited Members π
there's more stuff inherited from the parent class, bestie β you get the whole bloodline, iykyk.
π Detailed Description π
The RefSCVector class is a smart pointer to an SCVector specialization.
literally that's the description. short, sweet, main character energy. β
π§ Constructor & Destructor Documentation π§
sc::RefSCVector::RefSCVector ()
Initializes the vector pointer to 0. so it's starting from nothing, and β important β the reference must be initialized before it is used. no vibes-only pointers, okay? initialize first, slay second π
sc::RefSCVector::RefSCVector (const RefSCDimension & dim, const Ref< SCMatrixKit > &)
Create a vector with dimension dim. and heads up: the data values are undefined β like genuinely undefined, not "probably zero." don't be out here assuming anything about them, bestie π
π Author π
Generated automatically by Doxygen for MPQC from the source code. no human wrote this, it's a Doxygen robot, and honestly it ate π€β¨
okay that's the whole page!! and a lil cute sign-off for you: this is Version 2.3.1, dated Sun Oct 4 2020, and you can find it filed under sc::RefSCVector(3). mwah, go forth and initialize your references πππ¦
π¦ 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