\hypertarget{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast}{\section{matrix\-\_\-cast Class Reference}
\label{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast}\index{matrix\-\_\-cast@{matrix\-\_\-cast}}
}


{\ttfamily \#include $<$Matrix\-Type\-Conversions.\-h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class To\-Type $>$ }\\static boost\-::shared\-\_\-ptr$<$ To\-Type $>$ \hyperlink{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_a9d5df868c256739c1262c411e59295ee}{to} (const \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_ab3398b10244bf021a505b6602fdeb22a}{Matrix\-Handle} \&matrix, typename boost\-::enable\-\_\-if$<$ boost\-::is\-\_\-base\-\_\-of$<$ \hyperlink{class_s_c_i_run_1_1_core_1_1_datatypes_1_1_matrix_base}{Matrix\-Base}$<$ typename To\-Type\-::value\-\_\-type $>$, To\-Type $>$ $>$\-::type $\ast$=0)
\item 
static \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_aa8a28fd7db3f72bf1d932025a4d900cc}{Dense\-Matrix\-Handle} \hyperlink{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ab80eba2c26865d7409ae3185a8493faf}{as\-\_\-dense} (const \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_ab3398b10244bf021a505b6602fdeb22a}{Matrix\-Handle} \&mh)
\item 
static \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_ad6349337d161442a29a2af4da72218cb}{Sparse\-Row\-Matrix\-Handle} \hyperlink{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ac8b290fb527c5dfb8a31f09f0f7fd60e}{as\-\_\-sparse} (const \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_ab3398b10244bf021a505b6602fdeb22a}{Matrix\-Handle} \&mh)
\item 
static \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_a7d7a4696fc040ea511af24001ae460f2}{Dense\-Column\-Matrix\-Handle} \hyperlink{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_aa5d5983a35e9894f75a0292cd6ea928e}{as\-\_\-column} (const \hyperlink{namespace_s_c_i_run_1_1_core_1_1_datatypes_ab3398b10244bf021a505b6602fdeb22a}{Matrix\-Handle} \&mh)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
No conversion is done. N\-U\-L\-L is returned if the matrix is not of the appropriate type. 

\subsection{Member Function Documentation}
\hypertarget{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_aa5d5983a35e9894f75a0292cd6ea928e}{\index{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}!as\-\_\-column@{as\-\_\-column}}
\index{as\-\_\-column@{as\-\_\-column}!SCIRun::Core::Datatypes::matrix_cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}}
\subsubsection[{as\-\_\-column}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf Dense\-Column\-Matrix\-Handle} as\-\_\-column (
\begin{DoxyParamCaption}
\item[{const {\bf Matrix\-Handle} \&}]{mh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_aa5d5983a35e9894f75a0292cd6ea928e}
\hypertarget{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ab80eba2c26865d7409ae3185a8493faf}{\index{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}!as\-\_\-dense@{as\-\_\-dense}}
\index{as\-\_\-dense@{as\-\_\-dense}!SCIRun::Core::Datatypes::matrix_cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}}
\subsubsection[{as\-\_\-dense}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf Dense\-Matrix\-Handle} as\-\_\-dense (
\begin{DoxyParamCaption}
\item[{const {\bf Matrix\-Handle} \&}]{mh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ab80eba2c26865d7409ae3185a8493faf}
\hypertarget{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ac8b290fb527c5dfb8a31f09f0f7fd60e}{\index{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}!as\-\_\-sparse@{as\-\_\-sparse}}
\index{as\-\_\-sparse@{as\-\_\-sparse}!SCIRun::Core::Datatypes::matrix_cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}}
\subsubsection[{as\-\_\-sparse}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf Sparse\-Row\-Matrix\-Handle} as\-\_\-sparse (
\begin{DoxyParamCaption}
\item[{const {\bf Matrix\-Handle} \&}]{mh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_ac8b290fb527c5dfb8a31f09f0f7fd60e}
\hypertarget{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_a9d5df868c256739c1262c411e59295ee}{\index{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}!to@{to}}
\index{to@{to}!SCIRun::Core::Datatypes::matrix_cast@{S\-C\-I\-Run\-::\-Core\-::\-Datatypes\-::matrix\-\_\-cast}}
\subsubsection[{to}]{\setlength{\rightskip}{0pt plus 5cm}static boost\-::shared\-\_\-ptr$<$To\-Type$>$ to (
\begin{DoxyParamCaption}
\item[{const {\bf Matrix\-Handle} \&}]{matrix, }
\item[{typename boost\-::enable\-\_\-if$<$ boost\-::is\-\_\-base\-\_\-of$<$ {\bf Matrix\-Base}$<$ typename To\-Type\-::value\-\_\-type $>$, To\-Type $>$ $>$\-::type $\ast$}]{ = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{class_s_c_i_run_1_1_core_1_1_datatypes_1_1matrix__cast_a9d5df868c256739c1262c411e59295ee}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Core/\-Datatypes/\hyperlink{_matrix_type_conversions_8h}{Matrix\-Type\-Conversions.\-h}\end{DoxyCompactItemize}
