\hypertarget{classSimpleMatrix}{
\section{SimpleMatrix$<$ T $>$ Class Template Reference}
\label{classSimpleMatrix}\index{SimpleMatrix@{SimpleMatrix}}
}
A simple matrix class.  


{\tt \#include $<$CommonDefs.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classSimpleMatrix_9333dc41698c48f4e35d48e27dfe58ef}{SimpleMatrix} (unsigned int nRows, unsigned int nCols, T elements=T())
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
std::vector$<$ T $>$ \& \hyperlink{classSimpleMatrix_7ee36ef98c7f896e38ec8a8a0c263c39}{operator\mbox{[}$\,$\mbox{]}} (int i)
\begin{CompactList}\small\item\em Standard accessor. \item\end{CompactList}\item 
unsigned int \hyperlink{classSimpleMatrix_5cd169cdc38912c3cfb6d0c60e48e042}{GetNRows} ()
\begin{CompactList}\small\item\em Returns the number of rows. \item\end{CompactList}\item 
unsigned int \hyperlink{classSimpleMatrix_4f168e5b85899788746355ccad15e2fb}{GetNCols} ()
\begin{CompactList}\small\item\em Returns the number of columns. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
std::vector$<$ std::vector$<$ T $>$ $>$ \hyperlink{classSimpleMatrix_ddb323741e9ed620a46436037c8d819a}{\_\-matrix}
\item 
unsigned int \hyperlink{classSimpleMatrix_984429d26745802dcb3e001ff75246bc}{\_\-nRows}
\item 
unsigned int \hyperlink{classSimpleMatrix_8ea505fb218d273214c2ae6ef45bbc82}{\_\-nCols}
\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class T$>$ class SimpleMatrix$<$ T $>$}

A simple matrix class. 

This class defines a matrix built by STL vectors. It is basically a variable-dimension vector of vectors; the dimension is defined at construction and cannot be changed in current implementation. It is intended as a container and not for algebraic manipulations. The class provides a standard access operator \mbox{[}\mbox{]}. 

Definition at line 45 of file CommonDefs.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classSimpleMatrix_9333dc41698c48f4e35d48e27dfe58ef}{
\index{SimpleMatrix@{SimpleMatrix}!SimpleMatrix@{SimpleMatrix}}
\index{SimpleMatrix@{SimpleMatrix}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{SimpleMatrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ {\bf SimpleMatrix}$<$ T $>$::{\bf SimpleMatrix} (unsigned int {\em nRows}, \/  unsigned int {\em nCols}, \/  T {\em elements} = {\tt T()})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classSimpleMatrix_9333dc41698c48f4e35d48e27dfe58ef}


Constructor. 

The constructor will build an nRows x nCols matrix, initialized with a default value. If T is a class with no default constructor, a default value for T must be provided, which will be replicated in every matrix element.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em nRows}]The number of rows. \item[{\em nCols}]The number of columns \item[{\em elements}]The initialization value for the matrix elements. \end{description}
\end{Desc}


Definition at line 58 of file CommonDefs.h.

\subsection{Member Function Documentation}
\hypertarget{classSimpleMatrix_4f168e5b85899788746355ccad15e2fb}{
\index{SimpleMatrix@{SimpleMatrix}!GetNCols@{GetNCols}}
\index{GetNCols@{GetNCols}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{GetNCols}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ unsigned int {\bf SimpleMatrix}$<$ T $>$::GetNCols ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classSimpleMatrix_4f168e5b85899788746355ccad15e2fb}


Returns the number of columns. 

\begin{Desc}
\item[Returns:]The number of columns. \end{Desc}


Definition at line 84 of file CommonDefs.h.\hypertarget{classSimpleMatrix_5cd169cdc38912c3cfb6d0c60e48e042}{
\index{SimpleMatrix@{SimpleMatrix}!GetNRows@{GetNRows}}
\index{GetNRows@{GetNRows}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{GetNRows}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ unsigned int {\bf SimpleMatrix}$<$ T $>$::GetNRows ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classSimpleMatrix_5cd169cdc38912c3cfb6d0c60e48e042}


Returns the number of rows. 

\begin{Desc}
\item[Returns:]The number of rows. \end{Desc}


Definition at line 76 of file CommonDefs.h.\hypertarget{classSimpleMatrix_7ee36ef98c7f896e38ec8a8a0c263c39}{
\index{SimpleMatrix@{SimpleMatrix}!operator\mbox{[}\mbox{]}@{operator[]}}
\index{operator\mbox{[}\mbox{]}@{operator[]}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ std::vector$<$T$>$\& {\bf SimpleMatrix}$<$ T $>$::operator\mbox{[}$\,$\mbox{]} (int {\em i})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classSimpleMatrix_7ee36ef98c7f896e38ec8a8a0c263c39}


Standard accessor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em i}]The desired row. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The i-th row (a vector). \end{Desc}


Definition at line 68 of file CommonDefs.h.

\subsection{Member Data Documentation}
\hypertarget{classSimpleMatrix_ddb323741e9ed620a46436037c8d819a}{
\index{SimpleMatrix@{SimpleMatrix}!\_\-matrix@{\_\-matrix}}
\index{\_\-matrix@{\_\-matrix}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{\_\-matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ std::vector$<$std::vector$<$T$>$ $>$ {\bf SimpleMatrix}$<$ T $>$::{\bf \_\-matrix}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSimpleMatrix_ddb323741e9ed620a46436037c8d819a}




Definition at line 90 of file CommonDefs.h.

Referenced by SimpleMatrix$<$ UInt\_\-t $>$::operator\mbox{[}$\,$\mbox{]}().\hypertarget{classSimpleMatrix_8ea505fb218d273214c2ae6ef45bbc82}{
\index{SimpleMatrix@{SimpleMatrix}!\_\-nCols@{\_\-nCols}}
\index{\_\-nCols@{\_\-nCols}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{\_\-nCols}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ unsigned int {\bf SimpleMatrix}$<$ T $>$::{\bf \_\-nCols}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSimpleMatrix_8ea505fb218d273214c2ae6ef45bbc82}




Definition at line 91 of file CommonDefs.h.

Referenced by SimpleMatrix$<$ UInt\_\-t $>$::GetNCols().\hypertarget{classSimpleMatrix_984429d26745802dcb3e001ff75246bc}{
\index{SimpleMatrix@{SimpleMatrix}!\_\-nRows@{\_\-nRows}}
\index{\_\-nRows@{\_\-nRows}!SimpleMatrix@{SimpleMatrix}}
\subsubsection[{\_\-nRows}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T$>$ unsigned int {\bf SimpleMatrix}$<$ T $>$::{\bf \_\-nRows}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSimpleMatrix_984429d26745802dcb3e001ff75246bc}




Definition at line 91 of file CommonDefs.h.

Referenced by SimpleMatrix$<$ UInt\_\-t $>$::GetNRows().

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
\hyperlink{CommonDefs_8h}{CommonDefs.h}\end{CompactItemize}
