| 1 | \section{sqmat Class Reference} |
|---|
| 2 | \label{classsqmat}\index{sqmat@{sqmat}} |
|---|
| 3 | Virtual class for representation of double symmetric matrices in square-root form. |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | {\tt \#include $<$libDC.h$>$} |
|---|
| 7 | |
|---|
| 8 | Inheritance diagram for sqmat:\nopagebreak |
|---|
| 9 | \begin{figure}[H] |
|---|
| 10 | \begin{center} |
|---|
| 11 | \leavevmode |
|---|
| 12 | \includegraphics[width=78pt]{classsqmat__inherit__graph} |
|---|
| 13 | \end{center} |
|---|
| 14 | \end{figure} |
|---|
| 15 | \subsection*{Public Member Functions} |
|---|
| 16 | \begin{CompactItemize} |
|---|
| 17 | \item |
|---|
| 18 | virtual void {\bf opupdt} (const vec \&v, double w)=0 |
|---|
| 19 | \item |
|---|
| 20 | virtual mat {\bf to\_\-mat} ()=0\label{classsqmat_9a5b6fddfeb42339e1dc9b978a2590fc} |
|---|
| 21 | |
|---|
| 22 | \begin{CompactList}\small\item\em Conversion to full matrix. \item\end{CompactList}\item |
|---|
| 23 | virtual void {\bf mult\_\-sym} (const mat \&C, bool trans=true)=0 |
|---|
| 24 | \begin{CompactList}\small\item\em Inplace symmetric multiplication by a SQUARE matrix \$C\$, i.e. \$V = C$\ast$V$\ast$C'\$. \item\end{CompactList}\item |
|---|
| 25 | virtual double {\bf logdet} ()=0\label{classsqmat_5c852819589f74cdaefbd648c0ce8547} |
|---|
| 26 | |
|---|
| 27 | \begin{CompactList}\small\item\em Logarithm of a determinant. \item\end{CompactList}\item |
|---|
| 28 | virtual vec {\bf sqrt\_\-mult} (vec \&v)=0 |
|---|
| 29 | \begin{CompactList}\small\item\em Multiplies square root of \$V\$ by vector \$x\$. \item\end{CompactList}\item |
|---|
| 30 | virtual double {\bf qform} (vec \&v)=0\label{classsqmat_44e079468bc8bfccf634dc85b32ba6be} |
|---|
| 31 | |
|---|
| 32 | \begin{CompactList}\small\item\em Evaluates quadratic form \$x= v'$\ast$V$\ast$v\$;. \item\end{CompactList}\item |
|---|
| 33 | virtual void {\bf clear} ()=0\label{classsqmat_6fca246f9eabbdeb8cac03030e826b5e} |
|---|
| 34 | |
|---|
| 35 | \begin{CompactList}\small\item\em Clearing matrix so that it corresponds to zeros. \item\end{CompactList}\item |
|---|
| 36 | virtual int {\bf cols} ()=0\label{classsqmat_743d3799d9e73403230c54e14ecf09ed} |
|---|
| 37 | |
|---|
| 38 | \begin{CompactList}\small\item\em Reimplementing common functions of mat: \doxyref{cols()}{p.}{classsqmat_743d3799d9e73403230c54e14ecf09ed}. \item\end{CompactList}\item |
|---|
| 39 | virtual int {\bf rows} ()=0\label{classsqmat_f59664a4be09450f8c6ce3f5e5ab2dc7} |
|---|
| 40 | |
|---|
| 41 | \begin{CompactList}\small\item\em Reimplementing common functions of mat: \doxyref{cols()}{p.}{classsqmat_743d3799d9e73403230c54e14ecf09ed}. \item\end{CompactList}\end{CompactItemize} |
|---|
| 42 | \subsection*{Protected Attributes} |
|---|
| 43 | \begin{CompactItemize} |
|---|
| 44 | \item |
|---|
| 45 | int \textbf{dim}\label{classsqmat_0abed904bdc0882373ba9adba919689d} |
|---|
| 46 | |
|---|
| 47 | \end{CompactItemize} |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | \subsection{Detailed Description} |
|---|
| 51 | Virtual class for representation of double symmetric matrices in square-root form. |
|---|
| 52 | |
|---|
| 53 | All operations defined on this class should be optimized for the chosed decomposition. |
|---|
| 54 | |
|---|
| 55 | \subsection{Member Function Documentation} |
|---|
| 56 | \index{sqmat@{sqmat}!opupdt@{opupdt}} |
|---|
| 57 | \index{opupdt@{opupdt}!sqmat@{sqmat}} |
|---|
| 58 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void sqmat::opupdt (const vec \& {\em v}, double {\em w})\hspace{0.3cm}{\tt [pure virtual]}}\label{classsqmat_b223484796661f2dadb5607a86ce0581} |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | Perfroms a rank-1 update by outer product of vectors: \$V = V + w v v'\$. \begin{Desc} |
|---|
| 62 | \item[Parameters:] |
|---|
| 63 | \begin{description} |
|---|
| 64 | \item[{\em v}]Vector forming the outer product to be added \item[{\em w}]weight of updating; can be negative\end{description} |
|---|
| 65 | \end{Desc} |
|---|
| 66 | BLAS-2b operation. \index{sqmat@{sqmat}!mult_sym@{mult\_\-sym}} |
|---|
| 67 | \index{mult_sym@{mult\_\-sym}!sqmat@{sqmat}} |
|---|
| 68 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void sqmat::mult\_\-sym (const mat \& {\em C}, bool {\em trans} = {\tt true})\hspace{0.3cm}{\tt [pure virtual]}}\label{classsqmat_faa3bc90be142adde9cf74f573c70157} |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | Inplace symmetric multiplication by a SQUARE matrix \$C\$, i.e. \$V = C$\ast$V$\ast$C'\$. |
|---|
| 72 | |
|---|
| 73 | \begin{Desc} |
|---|
| 74 | \item[Parameters:] |
|---|
| 75 | \begin{description} |
|---|
| 76 | \item[{\em C}]multiplying matrix, \item[{\em trans}]if true, product \$V = C'$\ast$V$\ast$C\$ will be computed instead; \end{description} |
|---|
| 77 | \end{Desc} |
|---|
| 78 | \index{sqmat@{sqmat}!sqrt_mult@{sqrt\_\-mult}} |
|---|
| 79 | \index{sqrt_mult@{sqrt\_\-mult}!sqmat@{sqmat}} |
|---|
| 80 | \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual vec sqmat::sqrt\_\-mult (vec \& {\em v})\hspace{0.3cm}{\tt [pure virtual]}}\label{classsqmat_b5236c8a050199e1a9d338b0da1a08d2} |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | Multiplies square root of \$V\$ by vector \$x\$. |
|---|
| 84 | |
|---|
| 85 | Used e.g. in generating normal samples. |
|---|
| 86 | |
|---|
| 87 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
|---|
| 88 | \item |
|---|
| 89 | work/mixpp/bdm/math/{\bf libDC.h}\end{CompactItemize} |
|---|