diff options
Diffstat (limited to 'doc/latex/classmeow_1_1Vector.tex')
-rw-r--r-- | doc/latex/classmeow_1_1Vector.tex | 592 |
1 files changed, 592 insertions, 0 deletions
diff --git a/doc/latex/classmeow_1_1Vector.tex b/doc/latex/classmeow_1_1Vector.tex new file mode 100644 index 0000000..e2abffd --- /dev/null +++ b/doc/latex/classmeow_1_1Vector.tex @@ -0,0 +1,592 @@ +\hypertarget{classmeow_1_1Vector}{\section{meow\-:\-:Vector$<$ Scalar $>$ Class Template Reference} +\label{classmeow_1_1Vector}\index{meow\-::\-Vector$<$ Scalar $>$@{meow\-::\-Vector$<$ Scalar $>$}} +} + + +{\bfseries vector} + + + + +{\ttfamily \#include \char`\"{}Vector.\-h\char`\"{}} + +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hyperlink{classmeow_1_1Vector_a68530affccd332248e476cc3e188cd61}{Vector} () +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_a7def8437ada844cc6b6dc9769aba1ee6}{Vector} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_a34ca34c834e47288894cec2445e5b073}{Vector} (\hyperlink{classmeow_1_1Matrix}{Matrix}$<$ Scalar $>$ const \&m) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_af4966b6e2df19fa6d2752460b1e8afff}{Vector} (\hyperlink{classmeow_1_1Matrix}{Matrix}$<$ Scalar $>$ const \&m, size\-\_\-t i) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_a58f997cdc6b98a76ae13bba6d685d815}{Vector} (std\-::vector$<$ Scalar $>$ const \&v) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_a5589e07881f9f6a7bb7c43630d30ecdd}{Vector} (size\-\_\-t d, Scalar const \&e) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector_aee0da81d6a393d2abf7bf20c2ef260c3}{$\sim$\-Vector} () +\begin{DoxyCompactList}\small\item\em destructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \& \hyperlink{classmeow_1_1Vector_a52540cc03073243026770587c35beba0}{copy\-From} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) +\begin{DoxyCompactList}\small\item\em copy from ... \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \& \hyperlink{classmeow_1_1Vector_ad46346bcc2250cbf91803d38df9d538e}{reference\-From} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) +\begin{DoxyCompactList}\small\item\em reference from ... \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Matrix}{Matrix}$<$ Scalar $>$ const \& \hyperlink{classmeow_1_1Vector_ad3b1665885c683f41b94fd59b0f5e084}{matrix} () const +\begin{DoxyCompactList}\small\item\em Return a {\itshape dimension} x 1 matrix form of it. \end{DoxyCompactList}\item +size\-\_\-t \hyperlink{classmeow_1_1Vector_a554bb098d8af7ef1458624e8b1f47e6a}{dimension} () const +\begin{DoxyCompactList}\small\item\em return dimension \end{DoxyCompactList}\item +size\-\_\-t \hyperlink{classmeow_1_1Vector_ada37bc2df18e7c892d4b5e2ac34bf025}{dimension} (size\-\_\-t d, Scalar const \&s) +\begin{DoxyCompactList}\small\item\em resize the dimension \end{DoxyCompactList}\item +bool \hyperlink{classmeow_1_1Vector_a98f150719042e458d52a1476ae9fd52e}{valid} () const +\begin{DoxyCompactList}\small\item\em Return whether {\ttfamily dimension$>$0} is true or not. \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_af5ecb8d9cc811a2d56e1725c4bfd30e8}{entry} (size\-\_\-t i) const +\begin{DoxyCompactList}\small\item\em return {\itshape i} -\/th entry \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_a5050e9117204a6dbdcc7cf5038845c00}{entry} (size\-\_\-t i, Scalar const \&s) +\begin{DoxyCompactList}\small\item\em change {\itshape i} -\/th entry \end{DoxyCompactList}\item +void \hyperlink{classmeow_1_1Vector_adc55ef7402cf4114ea5696df18545618}{entries} (size\-\_\-t i, size\-\_\-t j, Scalar const \&s) +\begin{DoxyCompactList}\small\item\em change {\itshape i} -\/th to {\itshape j} -\/th entries \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a70c2620d25f6a36dc6d6aa38851b1c7a}{sub\-Vector} (size\-\_\-t i, size\-\_\-t j) +\begin{DoxyCompactList}\small\item\em subvector form i-\/th to j-\/th \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a200453ad223a040147a2dc92e4222589}{positive} () const +\begin{DoxyCompactList}\small\item\em return +{\itshape }($\ast$this) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_abefb870f27490906e326a6f94a896f7c}{negative} () const +\begin{DoxyCompactList}\small\item\em return -\/{\itshape }($\ast$this) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a43f91063553124efdd23d7f3db1599ac}{add} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this)+v \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_ad2e490231e4b624ef86f958b99c94533}{sub} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this)-\/v \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a45bd0b9c27a2fc83f1d00106c976751c}{mul} (Scalar const \&s) const +\begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this)$\ast$s , where s is a scalar \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_ac813d8c46325f8ec4771a7cc315c8908}{div} (Scalar const \&s) const +\begin{DoxyCompactList}\small\item\em return {\itshape }($\ast$this)/s , where s is a scalar \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_a9228c4b935c57cd2af9cb07218eca452}{dot} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em dot \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_afc7cc691dd00ab41fd56d798c13a6a27}{length} () const +\begin{DoxyCompactList}\small\item\em sqrt of {\itshape length2} \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_a71b56938e01de730490e722824f4b53e}{length2} () const +\begin{DoxyCompactList}\small\item\em same as {\itshape }($\ast$this).dot($\ast$this) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_ab675b777186dd4903367bc77922893ee}{normalize} () const +\begin{DoxyCompactList}\small\item\em return a normalize form of itself \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \& \hyperlink{classmeow_1_1Vector_aadbed69a847ce560210d0513c2156448}{normalized} () +\begin{DoxyCompactList}\small\item\em Let itself be normalize form. \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \& \hyperlink{classmeow_1_1Vector_a8cad36b5fab47f3d50b840ff26260623}{operator=} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) +\begin{DoxyCompactList}\small\item\em same as copy\-From \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_a6591f95bda6b9724d2f66fc1254bfa7a}{operator()} (size\-\_\-t i) const +\begin{DoxyCompactList}\small\item\em same as entry(i) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_af10156730c992a5597ca674940157fe8}{operator+} () const +\begin{DoxyCompactList}\small\item\em same as \hyperlink{classmeow_1_1Vector_a200453ad223a040147a2dc92e4222589}{positive()} \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a510da6e6a0470bf2312e62c1b43a310a}{operator-\/} () const +\begin{DoxyCompactList}\small\item\em same as \hyperlink{classmeow_1_1Vector_abefb870f27490906e326a6f94a896f7c}{negative()} \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a0a6eade258af4979692fa325dd59429c}{operator+} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em same as add(v) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_ac3e4b43822b9091c3eab7215c52b140d}{operator-\/} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em same as sub(v) \end{DoxyCompactList}\item +Scalar \hyperlink{classmeow_1_1Vector_a8180db77db8e6ef30a15f4bd1fcb7ef1}{operator$\ast$} (\hyperlink{classmeow_1_1Vector}{Vector} const \&v) const +\begin{DoxyCompactList}\small\item\em same as dot(v) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a3fdb5ccf26fe0602f7bd08e1ecfc940c}{operator$\ast$} (Scalar const \&s) const +\begin{DoxyCompactList}\small\item\em same as mul(s) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector}{Vector} \hyperlink{classmeow_1_1Vector_a74e4cf085fd43a51c50872ea9b42c47e}{operator/} (Scalar const \&s) const +\begin{DoxyCompactList}\small\item\em same as div(s) \end{DoxyCompactList}\end{DoxyCompactItemize} + + +\subsection{Detailed Description} +\subsubsection*{template$<$class Scalar$>$class meow\-::\-Vector$<$ Scalar $>$} + +{\bfseries vector} + +\begin{DoxyAuthor}{Author} +cat\-\_\-leopard +\end{DoxyAuthor} + + +\subsection{Constructor \& Destructor Documentation} +\hypertarget{classmeow_1_1Vector_a68530affccd332248e476cc3e188cd61}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a68530affccd332248e476cc3e188cd61} + + +constructor + +With {\bfseries dimension=0}, which means {\bfseries invalid}. \hypertarget{classmeow_1_1Vector_a7def8437ada844cc6b6dc9769aba1ee6}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a7def8437ada844cc6b6dc9769aba1ee6} + + +constructor + +Copy from another vector + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em v} & another vector \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_a34ca34c834e47288894cec2445e5b073}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +\item[{{\bf Matrix}$<$ Scalar $>$ const \&}]{m} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a34ca34c834e47288894cec2445e5b073} + + +constructor + +From matrix's first column + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em m} & matrix \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_af4966b6e2df19fa6d2752460b1e8afff}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +\item[{{\bf Matrix}$<$ Scalar $>$ const \&}]{m, } +\item[{size\-\_\-t}]{i} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_af4966b6e2df19fa6d2752460b1e8afff} + + +constructor + +From matrix's {\itshape i-\/th} column + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em m} & matrix \\ +\hline +\mbox{\tt in} & {\em i} & i-\/th \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_a58f997cdc6b98a76ae13bba6d685d815}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +\item[{std\-::vector$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a58f997cdc6b98a76ae13bba6d685d815} + + +constructor + +Copy from another std\-::vector + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em v} & vector \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_a5589e07881f9f6a7bb7c43630d30ecdd}{\index{meow\-::\-Vector@{meow\-::\-Vector}!Vector@{Vector}} +\index{Vector@{Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::{\bf Vector} ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{d, } +\item[{Scalar const \&}]{e} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a5589e07881f9f6a7bb7c43630d30ecdd} + + +constructor + +setup dimension and inital value + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em d} & dimension \\ +\hline +\mbox{\tt in} & {\em e} & inital value \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_aee0da81d6a393d2abf7bf20c2ef260c3}{\index{meow\-::\-Vector@{meow\-::\-Vector}!$\sim$\-Vector@{$\sim$\-Vector}} +\index{$\sim$\-Vector@{$\sim$\-Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{$\sim$\-Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf meow\-::\-Vector}$<$ Scalar $>$\-::$\sim${\bf Vector} ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_aee0da81d6a393d2abf7bf20c2ef260c3} + + +destructor + + + +\subsection{Member Function Documentation} +\hypertarget{classmeow_1_1Vector_a43f91063553124efdd23d7f3db1599ac}{\index{meow\-::\-Vector@{meow\-::\-Vector}!add@{add}} +\index{add@{add}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{add}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::add ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a43f91063553124efdd23d7f3db1599ac} + + +return {\itshape }($\ast$this)+v + +\hypertarget{classmeow_1_1Vector_a52540cc03073243026770587c35beba0}{\index{meow\-::\-Vector@{meow\-::\-Vector}!copy\-From@{copy\-From}} +\index{copy\-From@{copy\-From}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector}\& {\bf meow\-::\-Vector}$<$ Scalar $>$\-::copy\-From ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a52540cc03073243026770587c35beba0} + + +copy from ... + +\hypertarget{classmeow_1_1Vector_a554bb098d8af7ef1458624e8b1f47e6a}{\index{meow\-::\-Vector@{meow\-::\-Vector}!dimension@{dimension}} +\index{dimension@{dimension}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{dimension}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ size\-\_\-t {\bf meow\-::\-Vector}$<$ Scalar $>$\-::dimension ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a554bb098d8af7ef1458624e8b1f47e6a} + + +return dimension + +\hypertarget{classmeow_1_1Vector_ada37bc2df18e7c892d4b5e2ac34bf025}{\index{meow\-::\-Vector@{meow\-::\-Vector}!dimension@{dimension}} +\index{dimension@{dimension}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{dimension}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ size\-\_\-t {\bf meow\-::\-Vector}$<$ Scalar $>$\-::dimension ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{d, } +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ada37bc2df18e7c892d4b5e2ac34bf025} + + +resize the dimension + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em d} & new dimension \\ +\hline +\mbox{\tt in} & {\em s} & inital entry \\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +new dimension +\end{DoxyReturn} +\hypertarget{classmeow_1_1Vector_ac813d8c46325f8ec4771a7cc315c8908}{\index{meow\-::\-Vector@{meow\-::\-Vector}!div@{div}} +\index{div@{div}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{div}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::div ( +\begin{DoxyParamCaption} +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ac813d8c46325f8ec4771a7cc315c8908} + + +return {\itshape }($\ast$this)/s , where s is a scalar + +\hypertarget{classmeow_1_1Vector_a9228c4b935c57cd2af9cb07218eca452}{\index{meow\-::\-Vector@{meow\-::\-Vector}!dot@{dot}} +\index{dot@{dot}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{dot}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::dot ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a9228c4b935c57cd2af9cb07218eca452} + + +dot + +\hypertarget{classmeow_1_1Vector_adc55ef7402cf4114ea5696df18545618}{\index{meow\-::\-Vector@{meow\-::\-Vector}!entries@{entries}} +\index{entries@{entries}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{entries}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ void {\bf meow\-::\-Vector}$<$ Scalar $>$\-::entries ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{i, } +\item[{size\-\_\-t}]{j, } +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_adc55ef7402cf4114ea5696df18545618} + + +change {\itshape i} -\/th to {\itshape j} -\/th entries + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em i} & i-\/th \\ +\hline +\mbox{\tt in} & {\em j} & j-\/th \\ +\hline +\mbox{\tt in} & {\em s} & new value \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_af5ecb8d9cc811a2d56e1725c4bfd30e8}{\index{meow\-::\-Vector@{meow\-::\-Vector}!entry@{entry}} +\index{entry@{entry}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::entry ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{i} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_af5ecb8d9cc811a2d56e1725c4bfd30e8} + + +return {\itshape i} -\/th entry + +\hypertarget{classmeow_1_1Vector_a5050e9117204a6dbdcc7cf5038845c00}{\index{meow\-::\-Vector@{meow\-::\-Vector}!entry@{entry}} +\index{entry@{entry}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::entry ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{i, } +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a5050e9117204a6dbdcc7cf5038845c00} + + +change {\itshape i} -\/th entry + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em i} & i-\/th \\ +\hline +\mbox{\tt in} & {\em s} & new value \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Vector_afc7cc691dd00ab41fd56d798c13a6a27}{\index{meow\-::\-Vector@{meow\-::\-Vector}!length@{length}} +\index{length@{length}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{length}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::length ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_afc7cc691dd00ab41fd56d798c13a6a27} + + +sqrt of {\itshape length2} + +\hypertarget{classmeow_1_1Vector_a71b56938e01de730490e722824f4b53e}{\index{meow\-::\-Vector@{meow\-::\-Vector}!length2@{length2}} +\index{length2@{length2}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{length2}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::length2 ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a71b56938e01de730490e722824f4b53e} + + +same as {\itshape }($\ast$this).dot($\ast$this) + +\hypertarget{classmeow_1_1Vector_ad3b1665885c683f41b94fd59b0f5e084}{\index{meow\-::\-Vector@{meow\-::\-Vector}!matrix@{matrix}} +\index{matrix@{matrix}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{matrix}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Matrix}$<$Scalar$>$ const\& {\bf meow\-::\-Vector}$<$ Scalar $>$\-::matrix ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ad3b1665885c683f41b94fd59b0f5e084} + + +Return a {\itshape dimension} x 1 matrix form of it. + +\hypertarget{classmeow_1_1Vector_a45bd0b9c27a2fc83f1d00106c976751c}{\index{meow\-::\-Vector@{meow\-::\-Vector}!mul@{mul}} +\index{mul@{mul}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{mul}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::mul ( +\begin{DoxyParamCaption} +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a45bd0b9c27a2fc83f1d00106c976751c} + + +return {\itshape }($\ast$this)$\ast$s , where s is a scalar + +\hypertarget{classmeow_1_1Vector_abefb870f27490906e326a6f94a896f7c}{\index{meow\-::\-Vector@{meow\-::\-Vector}!negative@{negative}} +\index{negative@{negative}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{negative}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::negative ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_abefb870f27490906e326a6f94a896f7c} + + +return -\/{\itshape }($\ast$this) + +\hypertarget{classmeow_1_1Vector_ab675b777186dd4903367bc77922893ee}{\index{meow\-::\-Vector@{meow\-::\-Vector}!normalize@{normalize}} +\index{normalize@{normalize}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{normalize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::normalize ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ab675b777186dd4903367bc77922893ee} + + +return a normalize form of itself + +\hypertarget{classmeow_1_1Vector_aadbed69a847ce560210d0513c2156448}{\index{meow\-::\-Vector@{meow\-::\-Vector}!normalized@{normalized}} +\index{normalized@{normalized}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{normalized}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector}\& {\bf meow\-::\-Vector}$<$ Scalar $>$\-::normalized ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_aadbed69a847ce560210d0513c2156448} + + +Let itself be normalize form. + +\hypertarget{classmeow_1_1Vector_a6591f95bda6b9724d2f66fc1254bfa7a}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator()@{operator()}} +\index{operator()@{operator()}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator() ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{i} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a6591f95bda6b9724d2f66fc1254bfa7a} + + +same as entry(i) + +\hypertarget{classmeow_1_1Vector_a8180db77db8e6ef30a15f4bd1fcb7ef1}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator$\ast$@{operator$\ast$}} +\index{operator$\ast$@{operator$\ast$}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ Scalar {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator$\ast$ ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a8180db77db8e6ef30a15f4bd1fcb7ef1} + + +same as dot(v) + +\hypertarget{classmeow_1_1Vector_a3fdb5ccf26fe0602f7bd08e1ecfc940c}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator$\ast$@{operator$\ast$}} +\index{operator$\ast$@{operator$\ast$}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator$\ast$ ( +\begin{DoxyParamCaption} +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a3fdb5ccf26fe0602f7bd08e1ecfc940c} + + +same as mul(s) + +\hypertarget{classmeow_1_1Vector_af10156730c992a5597ca674940157fe8}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator+@{operator+}} +\index{operator+@{operator+}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator+ ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_af10156730c992a5597ca674940157fe8} + + +same as \hyperlink{classmeow_1_1Vector_a200453ad223a040147a2dc92e4222589}{positive()} + +\hypertarget{classmeow_1_1Vector_a0a6eade258af4979692fa325dd59429c}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator+@{operator+}} +\index{operator+@{operator+}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator+ ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a0a6eade258af4979692fa325dd59429c} + + +same as add(v) + +\hypertarget{classmeow_1_1Vector_a510da6e6a0470bf2312e62c1b43a310a}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator-\/@{operator-\/}} +\index{operator-\/@{operator-\/}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator-\/ ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a510da6e6a0470bf2312e62c1b43a310a} + + +same as \hyperlink{classmeow_1_1Vector_abefb870f27490906e326a6f94a896f7c}{negative()} + +\hypertarget{classmeow_1_1Vector_ac3e4b43822b9091c3eab7215c52b140d}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator-\/@{operator-\/}} +\index{operator-\/@{operator-\/}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator-\/ ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ac3e4b43822b9091c3eab7215c52b140d} + + +same as sub(v) + +\hypertarget{classmeow_1_1Vector_a74e4cf085fd43a51c50872ea9b42c47e}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator/@{operator/}} +\index{operator/@{operator/}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator/ ( +\begin{DoxyParamCaption} +\item[{Scalar const \&}]{s} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a74e4cf085fd43a51c50872ea9b42c47e} + + +same as div(s) + +\hypertarget{classmeow_1_1Vector_a8cad36b5fab47f3d50b840ff26260623}{\index{meow\-::\-Vector@{meow\-::\-Vector}!operator=@{operator=}} +\index{operator=@{operator=}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector}\& {\bf meow\-::\-Vector}$<$ Scalar $>$\-::operator= ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a8cad36b5fab47f3d50b840ff26260623} + + +same as copy\-From + +\hypertarget{classmeow_1_1Vector_a200453ad223a040147a2dc92e4222589}{\index{meow\-::\-Vector@{meow\-::\-Vector}!positive@{positive}} +\index{positive@{positive}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{positive}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::positive ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a200453ad223a040147a2dc92e4222589} + + +return +{\itshape }($\ast$this) + +\hypertarget{classmeow_1_1Vector_ad46346bcc2250cbf91803d38df9d538e}{\index{meow\-::\-Vector@{meow\-::\-Vector}!reference\-From@{reference\-From}} +\index{reference\-From@{reference\-From}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{reference\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector}\& {\bf meow\-::\-Vector}$<$ Scalar $>$\-::reference\-From ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ad46346bcc2250cbf91803d38df9d538e} + + +reference from ... + +\hypertarget{classmeow_1_1Vector_ad2e490231e4b624ef86f958b99c94533}{\index{meow\-::\-Vector@{meow\-::\-Vector}!sub@{sub}} +\index{sub@{sub}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{sub}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::sub ( +\begin{DoxyParamCaption} +\item[{{\bf Vector}$<$ Scalar $>$ const \&}]{v} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_ad2e490231e4b624ef86f958b99c94533} + + +return {\itshape }($\ast$this)-\/v + +\hypertarget{classmeow_1_1Vector_a70c2620d25f6a36dc6d6aa38851b1c7a}{\index{meow\-::\-Vector@{meow\-::\-Vector}!sub\-Vector@{sub\-Vector}} +\index{sub\-Vector@{sub\-Vector}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{sub\-Vector}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ {\bf Vector} {\bf meow\-::\-Vector}$<$ Scalar $>$\-::sub\-Vector ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{i, } +\item[{size\-\_\-t}]{j} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a70c2620d25f6a36dc6d6aa38851b1c7a} + + +subvector form i-\/th to j-\/th + +\hypertarget{classmeow_1_1Vector_a98f150719042e458d52a1476ae9fd52e}{\index{meow\-::\-Vector@{meow\-::\-Vector}!valid@{valid}} +\index{valid@{valid}!meow::Vector@{meow\-::\-Vector}} +\subsubsection[{valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Scalar$>$ bool {\bf meow\-::\-Vector}$<$ Scalar $>$\-::valid ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Vector_a98f150719042e458d52a1476ae9fd52e} + + +Return whether {\ttfamily dimension$>$0} is true or not. + +\begin{DoxyReturn}{Returns} +{\ttfamily true/false} +\end{DoxyReturn} + + +The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize} +\item +meowpp/math/\hyperlink{Vector_8h}{Vector.\-h}\end{DoxyCompactItemize} |