\hypertarget{classmeow_1_1Matrix}{\section{meow\-:\-:Matrix$<$ Entry $>$ Class Template Reference} \label{classmeow_1_1Matrix}\index{meow\-::\-Matrix$<$ Entry $>$@{meow\-::\-Matrix$<$ Entry $>$}} } {\bfseries matrix} {\ttfamily \#include \char`\"{}Matrix.\-h\char`\"{}} \subsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \hyperlink{classmeow_1_1Matrix_a2dc9f17e38ba52376822744d2fc48f29}{Matrix} () \begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix_a5728557810b6c5444332557ac53597d5}{Matrix} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) \begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix_af0b4507ec5ea08e8f33aeb99f11e5f74}{Matrix} (size\-\_\-t r, size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix_ae66fe3b4deb85b9b4c047f405a60f10e}{$\sim$\-Matrix} () \begin{DoxyCompactList}\small\item\em destructor \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_afb81446984f7c27458ccef86be2de413}{copy\-From} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) \begin{DoxyCompactList}\small\item\em copy \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_a1dbef5b1a46df480f7fa3e118fd12bec}{reference\-From} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) \begin{DoxyCompactList}\small\item\em reference \end{DoxyCompactList}\item void \hyperlink{classmeow_1_1Matrix_ac17251cb984beb1f74558724a22a0120}{reset} (size\-\_\-t r, size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em reset the size of the matrix to {\itshape r} x {\itshape c} with entry all be {\itshape e} \end{DoxyCompactList}\item bool \hyperlink{classmeow_1_1Matrix_a030758e4938c4d56a0b665e6a51d1405}{valid} () const \begin{DoxyCompactList}\small\item\em Return whether it is a {\bfseries valid} matrix. \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_a560adbe0b39f52bfb016edddc2955178}{rows} () const \begin{DoxyCompactList}\small\item\em Return number of rows. \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_a4db3bb07e2557cbc668bdaa1beb241df}{cols} () const \begin{DoxyCompactList}\small\item\em Return number of cols. \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_a8e35443c856f669d02b352f091c0404c}{size} () const \begin{DoxyCompactList}\small\item\em Return number of rows times number of cols. \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_add7842aea9c5b0372f56656af0d43325}{rows} (size\-\_\-t r, Entry const \&e) \begin{DoxyCompactList}\small\item\em resize the matrix such that number of rows become {\itshape r}. \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_a30d16679bb6843c5e35aae81738f3306}{cols} (size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em resize the matrix such that number of cols become {\itshape c} \end{DoxyCompactList}\item size\-\_\-t \hyperlink{classmeow_1_1Matrix_ac492cefa5df3a4ac6c9799931fb93605}{size} (size\-\_\-t r, size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em resize \end{DoxyCompactList}\item Entry \hyperlink{classmeow_1_1Matrix_a46a12f45237e654e0140387d7290eb8b}{entry} (size\-\_\-t r, size\-\_\-t c) const \begin{DoxyCompactList}\small\item\em Access the entry at {\itshape r} x {\itshape c}. \end{DoxyCompactList}\item Entry \hyperlink{classmeow_1_1Matrix_aaba0981e54a17f0df8af9dabe9cad06f}{entry} (size\-\_\-t r, size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em Change the entry at {\itshape r} x {\itshape c}. \end{DoxyCompactList}\item void \hyperlink{classmeow_1_1Matrix_a13384643dc412817fdcd8f1834a02d12}{entries} (ssize\-\_\-t r\-First, ssize\-\_\-t r\-Last, ssize\-\_\-t c\-First, ssize\-\_\-t c\-Last, Entry const \&e) \begin{DoxyCompactList}\small\item\em Change the entries from {\itshape r\-First} x {\itshape c\-First} to {\itshape r\-Last} x {\itshape c\-Last}. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a93ff4579b7cb950868cad7a62bcf9fe8}{sub\-Matrix} (size\-\_\-t r\-First, size\-\_\-t r\-Last, size\-\_\-t c\-First, size\-\_\-t c\-Last) const \begin{DoxyCompactList}\small\item\em Return a {\itshape r\-Last-\/r\-First+1} x {\itshape c\-Last-\/c\-First+1} matrix. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_ae623c8168ebf26473550d831f0254c4c}{row} (size\-\_\-t r) const \begin{DoxyCompactList}\small\item\em Return the {\itshape r} -\/th row. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a9dfef448574df55fc34528665183c6c2}{col} (size\-\_\-t c) const \begin{DoxyCompactList}\small\item\em Return the {\itshape c} -\/th column. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_aa43f03179e3218c9af28f7374757a2cc}{positive} () const \begin{DoxyCompactList}\small\item\em return +{\itshape }($\ast$this) \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a581dbd8ba10d054596a3d11eaf47f274}{negative} () const \begin{DoxyCompactList}\small\item\em return -\/{\itshape }($\ast$this) \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_ac1030360f1f48119128d99428930cce6}{add} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this) + {\itshape m}. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_ae89a9a7646f7b7c0f23756809c65dc8c}{sub} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this) -\/ {\itshape m}. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a30fdb794e5966585e93cf715646210dd}{mul} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this) times {\itshape m}. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a06ac197ecfa9bc8bd5e9d9094f2d01ab}{mul} (Entry const \&s) const \begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this) times {\itshape s}. {\itshape s} is a scalar \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_aed17cc829d1e766d2c905d65cbae48ce}{div} (Entry const \&s) const \begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this) / {\itshape s}. {\itshape s} is a scalar \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a9987d4535f1de58b822325914e3a916f}{identity} () const \begin{DoxyCompactList}\small\item\em Return a identity matrix with size equal to itself. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_abc6f5c824ee47cb15094729ca91f2e7c}{identitied} () \begin{DoxyCompactList}\small\item\em Let itself be an identity matrix. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_af6c3ae812c4290d29fb0932b655887dd}{inverse} () const \begin{DoxyCompactList}\small\item\em Return a matrix which is an inverse matrix of {\itshape }($\ast$this) \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_ab7b158abdfe8ad1966cc3f0490743170}{inversed} () \begin{DoxyCompactList}\small\item\em let itself become itself's inverse matrix \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a869be60b593d7ce7101ee7ac788b0dd0}{transpose} () const \begin{DoxyCompactList}\small\item\em return itself's transpose matrix \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_a752bbc50fc06c7a6bfad8b4d09e19304}{transposed} () \begin{DoxyCompactList}\small\item\em Let itself become itself's transpose matrix. \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a138c71b681404e054fa27cac5bb80d56}{triangular} () const \begin{DoxyCompactList}\small\item\em return a matrix which is the triangular form of {\itshape }($\ast$this) \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_acf27e5ea48f42ceec61e933dfe269016}{triangulared} () \begin{DoxyCompactList}\small\item\em triangluar itself \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \& \hyperlink{classmeow_1_1Matrix_a50bf284fe7beae52bb1bd0868486a602}{operator=} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) \begin{DoxyCompactList}\small\item\em same as {\itshape copy\-From} \end{DoxyCompactList}\item Entry \hyperlink{classmeow_1_1Matrix_a78b4b8b4ee30d02cb726bf7b8ac13147}{operator()} (size\-\_\-t r, size\-\_\-t c) const \begin{DoxyCompactList}\small\item\em same as {\itshape entry(r,c)} \end{DoxyCompactList}\item Entry \hyperlink{classmeow_1_1Matrix_a1dc03cd2475a4c5f34afbe0cb498e472}{operator()} (size\-\_\-t r, size\-\_\-t c, Entry const \&e) \begin{DoxyCompactList}\small\item\em same as {\itshape entry(r,c,e)} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_ade31d2339af552ba1df230c8383e2f84}{operator+} () const \begin{DoxyCompactList}\small\item\em same as {\itshape \hyperlink{classmeow_1_1Matrix_aa43f03179e3218c9af28f7374757a2cc}{positive()}} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a5d35d285b8cd59475e98f97966be68c1}{operator-\/} () const \begin{DoxyCompactList}\small\item\em same as {\itshape \hyperlink{classmeow_1_1Matrix_a581dbd8ba10d054596a3d11eaf47f274}{negative()}} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a8917cdb62ab6d8ed9572ac3303dbaab5}{operator+} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em same as {\itshape add(m)} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a955d9ddcb5b3467f8377ccae281ff4f5}{operator-\/} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em same as {\itshape sub(m)} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a913ed9a5df441a33fcf0dab1f35814c2}{operator$\ast$} (\hyperlink{classmeow_1_1Matrix}{Matrix} const \&m) const \begin{DoxyCompactList}\small\item\em same as {\itshape mul(m)} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a15d360e71c0880fed3c9873affb04341}{operator$\ast$} (Entry const \&s) const \begin{DoxyCompactList}\small\item\em same as {\itshape mul(m)} \end{DoxyCompactList}\item \hyperlink{classmeow_1_1Matrix}{Matrix} \hyperlink{classmeow_1_1Matrix_a807c2a35579a429a2278956fc070f31a}{operator/} (Entry const \&s) const \begin{DoxyCompactList}\small\item\em same as {\itshape div(s)} \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} \subsubsection*{template$<$class Entry$>$class meow\-::\-Matrix$<$ Entry $>$} {\bfseries matrix} \begin{DoxyAuthor}{Author} cat\-\_\-leopard \end{DoxyAuthor} \subsection{Constructor \& Destructor Documentation} \hypertarget{classmeow_1_1Matrix_a2dc9f17e38ba52376822744d2fc48f29}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!Matrix@{Matrix}} \index{Matrix@{Matrix}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{Matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf meow\-::\-Matrix}$<$ Entry $>$\-::{\bf Matrix} ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a2dc9f17e38ba52376822744d2fc48f29} constructor Create an empty matrix with size {\bfseries 0x0}. In other world, create an {\bfseries invalid} matrix \hypertarget{classmeow_1_1Matrix_a5728557810b6c5444332557ac53597d5}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!Matrix@{Matrix}} \index{Matrix@{Matrix}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{Matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf meow\-::\-Matrix}$<$ Entry $>$\-::{\bf Matrix} ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a5728557810b6c5444332557ac53597d5} constructor Copy data from another one \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em m} & another matrix \\ \hline \end{DoxyParams} \hypertarget{classmeow_1_1Matrix_af0b4507ec5ea08e8f33aeb99f11e5f74}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!Matrix@{Matrix}} \index{Matrix@{Matrix}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{Matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf meow\-::\-Matrix}$<$ Entry $>$\-::{\bf Matrix} ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_af0b4507ec5ea08e8f33aeb99f11e5f74} constructor Create an {\itshape r} x {\itshape c} matrix with all entry be {\itshape e} \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em r} & number of rows \\ \hline \mbox{\tt in} & {\em c} & number of columns \\ \hline \mbox{\tt in} & {\em e} & inital entry \\ \hline \end{DoxyParams} \hypertarget{classmeow_1_1Matrix_ae66fe3b4deb85b9b4c047f405a60f10e}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!$\sim$\-Matrix@{$\sim$\-Matrix}} \index{$\sim$\-Matrix@{$\sim$\-Matrix}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{$\sim$\-Matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf meow\-::\-Matrix}$<$ Entry $>$\-::$\sim${\bf Matrix} ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ae66fe3b4deb85b9b4c047f405a60f10e} destructor \subsection{Member Function Documentation} \hypertarget{classmeow_1_1Matrix_ac1030360f1f48119128d99428930cce6}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!add@{add}} \index{add@{add}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{add}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::add ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ac1030360f1f48119128d99428930cce6} return {\itshape }($\ast$this) + {\itshape m}. If the size not match, it will return an invalid matrix \hypertarget{classmeow_1_1Matrix_a9dfef448574df55fc34528665183c6c2}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!col@{col}} \index{col@{col}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{col}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::col ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{c} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a9dfef448574df55fc34528665183c6c2} Return the {\itshape c} -\/th column. \hypertarget{classmeow_1_1Matrix_a4db3bb07e2557cbc668bdaa1beb241df}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!cols@{cols}} \index{cols@{cols}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{cols}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::cols ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a4db3bb07e2557cbc668bdaa1beb241df} Return number of cols. \hypertarget{classmeow_1_1Matrix_a30d16679bb6843c5e35aae81738f3306}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!cols@{cols}} \index{cols@{cols}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{cols}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::cols ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a30d16679bb6843c5e35aae81738f3306} resize the matrix such that number of cols become {\itshape c} New created entry will be {\itshape e} \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em c} & new number of columns \\ \hline \mbox{\tt in} & {\em e} & inital entry \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} new number of columns \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_afb81446984f7c27458ccef86be2de413}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!copy\-From@{copy\-From}} \index{copy\-From@{copy\-From}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::copy\-From ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_afb81446984f7c27458ccef86be2de413} copy Copy data from another matrix \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em m} & matrix \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} $\ast$this \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_aed17cc829d1e766d2c905d65cbae48ce}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!div@{div}} \index{div@{div}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{div}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::div ( \begin{DoxyParamCaption} \item[{Entry const \&}]{s} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_aed17cc829d1e766d2c905d65cbae48ce} return {\itshape }($\ast$this) / {\itshape s}. {\itshape s} is a scalar \hypertarget{classmeow_1_1Matrix_a13384643dc412817fdcd8f1834a02d12}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!entries@{entries}} \index{entries@{entries}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{entries}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ void {\bf meow\-::\-Matrix}$<$ Entry $>$\-::entries ( \begin{DoxyParamCaption} \item[{ssize\-\_\-t}]{r\-First, } \item[{ssize\-\_\-t}]{r\-Last, } \item[{ssize\-\_\-t}]{c\-First, } \item[{ssize\-\_\-t}]{c\-Last, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a13384643dc412817fdcd8f1834a02d12} Change the entries from {\itshape r\-First} x {\itshape c\-First} to {\itshape r\-Last} x {\itshape c\-Last}. \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em r\-First} & \\ \hline \mbox{\tt in} & {\em r\-Last} & \\ \hline \mbox{\tt in} & {\em c\-First} & \\ \hline \mbox{\tt in} & {\em c\-Last} & \\ \hline \mbox{\tt in} & {\em e} & value \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} void \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_a46a12f45237e654e0140387d7290eb8b}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!entry@{entry}} \index{entry@{entry}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ Entry {\bf meow\-::\-Matrix}$<$ Entry $>$\-::entry ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a46a12f45237e654e0140387d7290eb8b} Access the entry at {\itshape r} x {\itshape c}. \hypertarget{classmeow_1_1Matrix_aaba0981e54a17f0df8af9dabe9cad06f}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!entry@{entry}} \index{entry@{entry}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ Entry {\bf meow\-::\-Matrix}$<$ Entry $>$\-::entry ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_aaba0981e54a17f0df8af9dabe9cad06f} Change the entry at {\itshape r} x {\itshape c}. \hypertarget{classmeow_1_1Matrix_abc6f5c824ee47cb15094729ca91f2e7c}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!identitied@{identitied}} \index{identitied@{identitied}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{identitied}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::identitied ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_abc6f5c824ee47cb15094729ca91f2e7c} Let itself be an identity matrix. Our definition of Identity matrix is 1 for entry(i, i) and 0 otherwise. \hypertarget{classmeow_1_1Matrix_a9987d4535f1de58b822325914e3a916f}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!identity@{identity}} \index{identity@{identity}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{identity}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::identity ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a9987d4535f1de58b822325914e3a916f} Return a identity matrix with size equal to itself. \hypertarget{classmeow_1_1Matrix_af6c3ae812c4290d29fb0932b655887dd}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!inverse@{inverse}} \index{inverse@{inverse}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{inverse}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::inverse ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_af6c3ae812c4290d29fb0932b655887dd} Return a matrix which is an inverse matrix of {\itshape }($\ast$this) If inverse matrix doesn't exist, it will return a invalid matrix \hypertarget{classmeow_1_1Matrix_ab7b158abdfe8ad1966cc3f0490743170}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!inversed@{inversed}} \index{inversed@{inversed}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{inversed}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::inversed ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ab7b158abdfe8ad1966cc3f0490743170} let itself become itself's inverse matrix \hypertarget{classmeow_1_1Matrix_a30fdb794e5966585e93cf715646210dd}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!mul@{mul}} \index{mul@{mul}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{mul}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::mul ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a30fdb794e5966585e93cf715646210dd} return {\itshape }($\ast$this) times {\itshape m}. If the size not match, it will return an invalid matrix \hypertarget{classmeow_1_1Matrix_a06ac197ecfa9bc8bd5e9d9094f2d01ab}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!mul@{mul}} \index{mul@{mul}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{mul}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::mul ( \begin{DoxyParamCaption} \item[{Entry const \&}]{s} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a06ac197ecfa9bc8bd5e9d9094f2d01ab} return {\itshape }($\ast$this) times {\itshape s}. {\itshape s} is a scalar \hypertarget{classmeow_1_1Matrix_a581dbd8ba10d054596a3d11eaf47f274}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!negative@{negative}} \index{negative@{negative}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{negative}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::negative ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a581dbd8ba10d054596a3d11eaf47f274} return -\/{\itshape }($\ast$this) \hypertarget{classmeow_1_1Matrix_a78b4b8b4ee30d02cb726bf7b8ac13147}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator()@{operator()}} \index{operator()@{operator()}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ Entry {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator() ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a78b4b8b4ee30d02cb726bf7b8ac13147} same as {\itshape entry(r,c)} \hypertarget{classmeow_1_1Matrix_a1dc03cd2475a4c5f34afbe0cb498e472}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator()@{operator()}} \index{operator()@{operator()}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ Entry {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator() ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a1dc03cd2475a4c5f34afbe0cb498e472} same as {\itshape entry(r,c,e)} \hypertarget{classmeow_1_1Matrix_a913ed9a5df441a33fcf0dab1f35814c2}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator$\ast$@{operator$\ast$}} \index{operator$\ast$@{operator$\ast$}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator$\ast$ ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a913ed9a5df441a33fcf0dab1f35814c2} same as {\itshape mul(m)} \hypertarget{classmeow_1_1Matrix_a15d360e71c0880fed3c9873affb04341}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator$\ast$@{operator$\ast$}} \index{operator$\ast$@{operator$\ast$}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator$\ast$ ( \begin{DoxyParamCaption} \item[{Entry const \&}]{s} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a15d360e71c0880fed3c9873affb04341} same as {\itshape mul(m)} \hypertarget{classmeow_1_1Matrix_ade31d2339af552ba1df230c8383e2f84}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator+@{operator+}} \index{operator+@{operator+}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator+ ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ade31d2339af552ba1df230c8383e2f84} same as {\itshape \hyperlink{classmeow_1_1Matrix_aa43f03179e3218c9af28f7374757a2cc}{positive()}} \hypertarget{classmeow_1_1Matrix_a8917cdb62ab6d8ed9572ac3303dbaab5}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator+@{operator+}} \index{operator+@{operator+}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator+ ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a8917cdb62ab6d8ed9572ac3303dbaab5} same as {\itshape add(m)} \hypertarget{classmeow_1_1Matrix_a5d35d285b8cd59475e98f97966be68c1}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator-\/@{operator-\/}} \index{operator-\/@{operator-\/}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator-\/ ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a5d35d285b8cd59475e98f97966be68c1} same as {\itshape \hyperlink{classmeow_1_1Matrix_a581dbd8ba10d054596a3d11eaf47f274}{negative()}} \hypertarget{classmeow_1_1Matrix_a955d9ddcb5b3467f8377ccae281ff4f5}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator-\/@{operator-\/}} \index{operator-\/@{operator-\/}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator-\/ ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a955d9ddcb5b3467f8377ccae281ff4f5} same as {\itshape sub(m)} \hypertarget{classmeow_1_1Matrix_a807c2a35579a429a2278956fc070f31a}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator/@{operator/}} \index{operator/@{operator/}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator/ ( \begin{DoxyParamCaption} \item[{Entry const \&}]{s} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a807c2a35579a429a2278956fc070f31a} same as {\itshape div(s)} \hypertarget{classmeow_1_1Matrix_a50bf284fe7beae52bb1bd0868486a602}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!operator=@{operator=}} \index{operator=@{operator=}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::operator= ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a50bf284fe7beae52bb1bd0868486a602} same as {\itshape copy\-From} \hypertarget{classmeow_1_1Matrix_aa43f03179e3218c9af28f7374757a2cc}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!positive@{positive}} \index{positive@{positive}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{positive}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::positive ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_aa43f03179e3218c9af28f7374757a2cc} return +{\itshape }($\ast$this) \hypertarget{classmeow_1_1Matrix_a1dbef5b1a46df480f7fa3e118fd12bec}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!reference\-From@{reference\-From}} \index{reference\-From@{reference\-From}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{reference\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::reference\-From ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a1dbef5b1a46df480f7fa3e118fd12bec} reference Reference itself to another matrix \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em m} & matrix \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} $\ast$this \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_ac17251cb984beb1f74558724a22a0120}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!reset@{reset}} \index{reset@{reset}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{reset}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ void {\bf meow\-::\-Matrix}$<$ Entry $>$\-::reset ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ac17251cb984beb1f74558724a22a0120} reset the size of the matrix to {\itshape r} x {\itshape c} with entry all be {\itshape e} \hypertarget{classmeow_1_1Matrix_ae623c8168ebf26473550d831f0254c4c}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!row@{row}} \index{row@{row}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{row}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::row ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ae623c8168ebf26473550d831f0254c4c} Return the {\itshape r} -\/th row. \hypertarget{classmeow_1_1Matrix_a560adbe0b39f52bfb016edddc2955178}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!rows@{rows}} \index{rows@{rows}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{rows}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::rows ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a560adbe0b39f52bfb016edddc2955178} Return number of rows. \hypertarget{classmeow_1_1Matrix_add7842aea9c5b0372f56656af0d43325}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!rows@{rows}} \index{rows@{rows}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{rows}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::rows ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_add7842aea9c5b0372f56656af0d43325} resize the matrix such that number of rows become {\itshape r}. New created entry will be {\itshape e} \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em r} & new number of rows \\ \hline \mbox{\tt in} & {\em e} & inital entry \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} new number of rows \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_a8e35443c856f669d02b352f091c0404c}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!size@{size}} \index{size@{size}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::size ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a8e35443c856f669d02b352f091c0404c} Return number of rows times number of cols. \hypertarget{classmeow_1_1Matrix_ac492cefa5df3a4ac6c9799931fb93605}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!size@{size}} \index{size@{size}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ size\-\_\-t {\bf meow\-::\-Matrix}$<$ Entry $>$\-::size ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r, } \item[{size\-\_\-t}]{c, } \item[{Entry const \&}]{e} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ac492cefa5df3a4ac6c9799931fb93605} resize Resize to {\itshape r} x {\itshape c}, with new created entry be {\itshape e} \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em r} & number of rows \\ \hline \mbox{\tt in} & {\em c} & number of rows \\ \hline \mbox{\tt in} & {\em e} & inital entry \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} {\itshape r} $\ast$ {\itshape c} \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_ae89a9a7646f7b7c0f23756809c65dc8c}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!sub@{sub}} \index{sub@{sub}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{sub}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::sub ( \begin{DoxyParamCaption} \item[{{\bf Matrix}$<$ Entry $>$ const \&}]{m} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_ae89a9a7646f7b7c0f23756809c65dc8c} return {\itshape }($\ast$this) -\/ {\itshape m}. If the size not match, it will return an invalid matrix \hypertarget{classmeow_1_1Matrix_a93ff4579b7cb950868cad7a62bcf9fe8}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!sub\-Matrix@{sub\-Matrix}} \index{sub\-Matrix@{sub\-Matrix}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{sub\-Matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::sub\-Matrix ( \begin{DoxyParamCaption} \item[{size\-\_\-t}]{r\-First, } \item[{size\-\_\-t}]{r\-Last, } \item[{size\-\_\-t}]{c\-First, } \item[{size\-\_\-t}]{c\-Last} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a93ff4579b7cb950868cad7a62bcf9fe8} Return a {\itshape r\-Last-\/r\-First+1} x {\itshape c\-Last-\/c\-First+1} matrix. With value be the entries from {\itshape r\-First} x {\itshape c\-First} to {\itshape r\-Last} x {\itshape c\-Last} \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em r\-First} & \\ \hline \mbox{\tt in} & {\em r\-Last} & \\ \hline \mbox{\tt in} & {\em c\-First} & \\ \hline \mbox{\tt in} & {\em c\-Last} & \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a matrix \end{DoxyReturn} \hypertarget{classmeow_1_1Matrix_a869be60b593d7ce7101ee7ac788b0dd0}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!transpose@{transpose}} \index{transpose@{transpose}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{transpose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::transpose ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a869be60b593d7ce7101ee7ac788b0dd0} return itself's transpose matrix \hypertarget{classmeow_1_1Matrix_a752bbc50fc06c7a6bfad8b4d09e19304}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!transposed@{transposed}} \index{transposed@{transposed}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{transposed}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::transposed ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a752bbc50fc06c7a6bfad8b4d09e19304} Let itself become itself's transpose matrix. \hypertarget{classmeow_1_1Matrix_a138c71b681404e054fa27cac5bb80d56}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!triangular@{triangular}} \index{triangular@{triangular}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{triangular}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix} {\bf meow\-::\-Matrix}$<$ Entry $>$\-::triangular ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a138c71b681404e054fa27cac5bb80d56} return a matrix which is the triangular form of {\itshape }($\ast$this) \hypertarget{classmeow_1_1Matrix_acf27e5ea48f42ceec61e933dfe269016}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!triangulared@{triangulared}} \index{triangulared@{triangulared}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{triangulared}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ {\bf Matrix}\& {\bf meow\-::\-Matrix}$<$ Entry $>$\-::triangulared ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_acf27e5ea48f42ceec61e933dfe269016} triangluar itself \hypertarget{classmeow_1_1Matrix_a030758e4938c4d56a0b665e6a51d1405}{\index{meow\-::\-Matrix@{meow\-::\-Matrix}!valid@{valid}} \index{valid@{valid}!meow::Matrix@{meow\-::\-Matrix}} \subsubsection[{valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Entry$>$ bool {\bf meow\-::\-Matrix}$<$ Entry $>$\-::valid ( \begin{DoxyParamCaption} {} \end{DoxyParamCaption} ) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Matrix_a030758e4938c4d56a0b665e6a51d1405} Return whether it is a {\bfseries valid} matrix. The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize} \item meowpp/math/\hyperlink{Matrix_8h}{Matrix.\-h}\end{DoxyCompactItemize}