sc::RefDiagSCMatrix(3)

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

πŸ’– 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 to 0, fr fr.
  • RefDiagSCMatrix (const RefDiagSCMatrix &m) β€” makes this and m refer to the same SCMatrix.
  • RefDiagSCMatrix (DiagSCMatrix *m) β€” makes this refer to m.
  • RefDiagSCMatrix & operator= (DiagSCMatrix *m) β€” makes this refer to m.
  • RefDiagSCMatrix & operator= (const RefDiagSCMatrix &m) β€” makes this and m refer to the same matrix.
  • RefDiagSCMatrix (const RefSCDimension &, const Ref< SCMatrixKit > &) β€” creates a diagonal matrix with dimension d by d. πŸ’«
  • RefSCMatrix operator* (const RefSCMatrix &) const β€” multiplies this by a matrix and returns a matrix.
  • RefDiagSCMatrix operator* (double) const β€” the double multiply, 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 the SCMatrix members of the same name after checking for references to 0.
  • RefDiagSCMatrix copy () const β€” also calls the SCMatrix member of the same name after checking for references to 0.
  • 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 another RefDiagSCMatrix.
  • void scale (double) const β€” scales it by a double.
  • void assign (double) const β€” assigns a double.
  • void assign (const double *) const β€” assigns from a const double *.
  • void convert (double *) const β€” converts into a double *.
  • void accumulate (const RefDiagSCMatrix &) const β€” accumulates from another RefDiagSCMatrix.
  • void element_op (const Ref< SCElementOp > &) const β€” element op with one SCElementOp.
  • void element_op (const Ref< SCElementOp2 > &, const RefDiagSCMatrix &) const β€” element op with SCElementOp2 and a RefDiagSCMatrix.
  • void element_op (const Ref< SCElementOp3 > &, const RefDiagSCMatrix &, const RefDiagSCMatrix &) const β€” element op with SCElementOp3 and two RefDiagSCMatrix besties.
  • int n () const β€” returns n.
  • 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 an std::ostream.
  • void print (const char *title=0, std::ostream &out=ExEnv::out0(), int=10) const β€” prints with a title, output stream, and that int=10 default, exactly as written.
  • void save (StateOut &) β€” saves to StateOut.
  • void restore (StateIn &) β€” restores the matrix from StateIn object. 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 block i.

πŸŽ€ 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