sc::RefDiagSCMatrix(3)
π sc::RefDiagSCMatrix π
okay bestie, this is the MPQC manual page for sc::RefDiagSCMatrix, and it is literally a smart pointer to an DiagSCMatrix specialization. stay with me, it's giving matrix-girlie energy π
β¨ NAME β¨
sc::RefDiagSCMatrix β The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.
π¦ SYNOPSIS π¦
#include <matrix.h>
Inherits sc::Ref< DiagSCMatrix >.
πΈ Public Member Functions πΈ
RefDiagSCMatrix ()β initializes the matrix pointer to0, fr fr.RefDiagSCMatrix (const RefDiagSCMatrix &m)β makes this andmrefer to the sameSCMatrix.RefDiagSCMatrix (DiagSCMatrix *m)β makes this refer tom.RefDiagSCMatrix & operator= (DiagSCMatrix *m)β makes this refer tom.RefDiagSCMatrix & operator= (const RefDiagSCMatrix &m)β makes this andmrefer to the same matrix.RefDiagSCMatrix (const RefSCDimension &, const Ref< SCMatrixKit > &)β creates a diagonal matrix with dimensiondbyd. π«RefSCMatrix operator* (const RefSCMatrix &) constβ multiplies this by a matrix and returns a matrix.RefDiagSCMatrix operator* (double) constβ thedoublemultiply, exactly as written.RefDiagSCMatrix operator+ (const RefDiagSCMatrix &) constβ matrix addition and subtraction, the classic duo.RefDiagSCMatrix operator- (const RefDiagSCMatrix &) constβ matrix addition and subtraction, same duo, different sign.RefDiagSCMatrix i () constβ returns the inverse of this.RefDiagSCMatrix gi () constβ returns the generalized inverse of this.RefDiagSCMatrix clone () constβ these call theSCMatrixmembers of the same name after checking for references to0.RefDiagSCMatrix copy () constβ also calls theSCMatrixmember of the same name after checking for references to0.void set_element (int, double) constβ sets an element, no extra lore in the source.void accumulate_element (int, double) constβ accumulates an element.double get_element (int) constβ gets an element.void randomize () constβ randomizes it.void assign (const RefDiagSCMatrix &) constβ assigns from anotherRefDiagSCMatrix.void scale (double) constβ scales it by adouble.void assign (double) constβ assigns adouble.void assign (const double *) constβ assigns from aconst double *.void convert (double *) constβ converts into adouble *.void accumulate (const RefDiagSCMatrix &) constβ accumulates from anotherRefDiagSCMatrix.void element_op (const Ref< SCElementOp > &) constβ element op with oneSCElementOp.void element_op (const Ref< SCElementOp2 > &, const RefDiagSCMatrix &) constβ element op withSCElementOp2and aRefDiagSCMatrix.void element_op (const Ref< SCElementOp3 > &, const RefDiagSCMatrix &, const RefDiagSCMatrix &) constβ element op withSCElementOp3and twoRefDiagSCMatrixbesties.int n () constβ returnsn.RefSCDimension dim () constβ returns the dimension.Ref< SCMatrixKit > kit () constβ returns the kit.double trace () constβ returns the trace.void print (std::ostream &) constβ prints to anstd::ostream.void print (const char *title=0, std::ostream &out=ExEnv::out0(), int=10) constβ prints with a title, output stream, and thatint=10default, exactly as written.void save (StateOut &)β saves toStateOut.void restore (StateIn &)β restores the matrix fromStateInobject. The matrix must have been initialized already. β οΈdouble determ () constβ returns the determinant of the referenced matrix.DiagSCMatrixdouble operator() (int i) constβ assign and examine matrix elements. yes, that signature is exactly what the page says, no cap.int nblock () constβ if this matrix is blocked return the number of blocks.RefDiagSCMatrix block (int i) constβ if this matrix is blocked return blocki.
π Additional Inherited Members π
There are additional inherited members too, because inheriting sc::Ref< DiagSCMatrix > is a whole thing. π
π Detailed Description π
The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization. that's the whole vibe, bestie. π«Ά
π Constructor & Destructor Documentation π
sc::RefDiagSCMatrix::RefDiagSCMatrix ()
Initializes the matrix pointer to 0. The reference must be initialized before it is used. periodt.
sc::RefDiagSCMatrix::RefDiagSCMatrix (const RefSCDimension &, const Ref< SCMatrixKit > &)
Create a diagonal matrix with dimension d by d. The data values are undefined. so like, don't expect cute little numbers in there automatically, okay? π
π Member Function Documentation π
RefDiagSCMatrix sc::RefDiagSCMatrix::block (int i) const
If this matrix is blocked return block i. Otherwise return this as block 0.
int sc::RefDiagSCMatrix::nblock () const
If this matrix is blocked return the number of blocks. Otherwise return 1.
π Author π
Generated automatically by Doxygen for MPQC from the source code. not me, bestie, that's literally what it says. π
mwah π this was Version 2.3.1, dated Sun Oct 4 2020, and the page is sc::RefDiagSCMatrix(3) β that's the whole manual page, and yes, it ate. πβ¨
π¦ 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