.TH "sc::RefDiagSCMatrix" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::RefDiagSCMatrix \- The \fBRefDiagSCMatrix\fP class is a smart pointer to an \fBDiagSCMatrix\fP specialization\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::Ref< DiagSCMatrix >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBRefDiagSCMatrix\fP ()" .br .RI "Initializes the matrix pointer to 0\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP (const \fBRefDiagSCMatrix\fP &m)" .br .RI "Make this and m refer to the same \fBSCMatrix\fP\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP (\fBDiagSCMatrix\fP *m)" .br .RI "Make this refer to m\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP & \fBoperator=\fP (\fBDiagSCMatrix\fP *m)" .br .RI "Make this refer to m\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP & \fBoperator=\fP (const \fBRefDiagSCMatrix\fP &m)" .br .RI "Make this and m refer to the same matrix\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP (const \fBRefSCDimension\fP &, const \fBRef\fP< \fBSCMatrixKit\fP > &)" .br .RI "Create a diagonal matrix with dimension d by d\&. " .ti -1c .RI "\fBRefSCMatrix\fP \fBoperator*\fP (const \fBRefSCMatrix\fP &) const" .br .RI "Multiply this by a matrix and return a matrix\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBoperator*\fP (double) const" .br .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBoperator+\fP (const \fBRefDiagSCMatrix\fP &) const" .br .RI "Matrix addition and subtraction\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBoperator\-\fP (const \fBRefDiagSCMatrix\fP &) const" .br .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBi\fP () const" .br .RI "Return the inverse of this\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBgi\fP () const" .br .RI "Return the generalized inverse of this\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBclone\fP () const" .br .RI "These call the \fBSCMatrix\fP members of the same name after checking for references to 0\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBcopy\fP () const" .br .ti -1c .RI "void \fBset_element\fP (int, double) const" .br .ti -1c .RI "void \fBaccumulate_element\fP (int, double) const" .br .ti -1c .RI "double \fBget_element\fP (int) const" .br .ti -1c .RI "void \fBrandomize\fP () const" .br .ti -1c .RI "void \fBassign\fP (const \fBRefDiagSCMatrix\fP &) const" .br .ti -1c .RI "void \fBscale\fP (double) const" .br .ti -1c .RI "void \fBassign\fP (double) const" .br .ti -1c .RI "void \fBassign\fP (const double *) const" .br .ti -1c .RI "void \fBconvert\fP (double *) const" .br .ti -1c .RI "void \fBaccumulate\fP (const \fBRefDiagSCMatrix\fP &) const" .br .ti -1c .RI "void \fBelement_op\fP (const \fBRef\fP< \fBSCElementOp\fP > &) const" .br .ti -1c .RI "void \fBelement_op\fP (const \fBRef\fP< \fBSCElementOp2\fP > &, const \fBRefDiagSCMatrix\fP &) const" .br .ti -1c .RI "void \fBelement_op\fP (const \fBRef\fP< \fBSCElementOp3\fP > &, const \fBRefDiagSCMatrix\fP &, const \fBRefDiagSCMatrix\fP &) const" .br .ti -1c .RI "int \fBn\fP () const" .br .ti -1c .RI "\fBRefSCDimension\fP \fBdim\fP () const" .br .ti -1c .RI "\fBRef\fP< \fBSCMatrixKit\fP > \fBkit\fP () const" .br .ti -1c .RI "double \fBtrace\fP () const" .br .ti -1c .RI "void \fBprint\fP (std::ostream &) const" .br .ti -1c .RI "void \fBprint\fP (const char *title=0, std::ostream &out=\fBExEnv::out0\fP(), int=10) const" .br .ti -1c .RI "void \fBsave\fP (\fBStateOut\fP &)" .br .ti -1c .RI "void \fBrestore\fP (\fBStateIn\fP &)" .br .RI "Restores the matrix from \fBStateIn\fP object\&. The matrix must have been initialized already\&. " .ti -1c .RI "double \fBdeterm\fP () const" .br .RI "Returns the determinant of the referenced matrix\&. " .ti -1c .RI "\fBDiagSCMatrixdouble\fP \fBoperator()\fP (int \fBi\fP) const" .br .RI "Assign and examine matrix elements\&. " .ti -1c .RI "int \fBnblock\fP () const" .br .RI "If this matrix is blocked return the number of blocks\&. " .ti -1c .RI "\fBRefDiagSCMatrix\fP \fBblock\fP (int \fBi\fP) const" .br .RI "If this matrix is blocked return block i\&. " .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBRefDiagSCMatrix\fP class is a smart pointer to an \fBDiagSCMatrix\fP specialization\&. .SH "Constructor & Destructor Documentation" .PP .SS "sc::RefDiagSCMatrix::RefDiagSCMatrix ()" .PP Initializes the matrix pointer to 0\&. The reference must be initialized before it is used\&. .SS "sc::RefDiagSCMatrix::RefDiagSCMatrix (const \fBRefSCDimension\fP &, const \fBRef\fP< \fBSCMatrixKit\fP > &)" .PP Create a diagonal matrix with dimension d by d\&. The data values are undefined\&. .SH "Member Function Documentation" .PP .SS "\fBRefDiagSCMatrix\fP sc::RefDiagSCMatrix::block (int i) const" .PP If this matrix is blocked return block i\&. Otherwise return this as block 0\&. .SS "int sc::RefDiagSCMatrix::nblock () const" .PP If this matrix is blocked return the number of blocks\&. Otherwise return 1\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.