\doxysection{gko::\+Readable\+From\+Matrix\+Data\texorpdfstring{$<$}{<} Value\+Type, Index\+Type \texorpdfstring{$>$}{>} Class Template Reference}
\hypertarget{classgko_1_1ReadableFromMatrixData}{}\label{classgko_1_1ReadableFromMatrixData}\index{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}}


A \doxylink{classgko_1_1LinOp}{Lin\+Op} implementing this interface can read its data from a \doxylink{structgko_1_1matrix__data}{matrix\+\_\+data} structure.  




{\ttfamily \+\#include $<$ginkgo/\+core/\+base/\+lin\+\_\+op.\+hpp$>$}



Inheritance diagram for gko::\+Readable\+From\+Matrix\+Data\texorpdfstring{$<$}{<} Value\+Type, Index\+Type \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classgko_1_1ReadableFromMatrixData__inherit__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1ReadableFromMatrixData_a2b6682ee10df9c1eeba2058fb4d4f1f3}\label{classgko_1_1ReadableFromMatrixData_a2b6682ee10df9c1eeba2058fb4d4f1f3} 
using {\bfseries value\+\_\+type} = Value\+Type
\item 
\Hypertarget{classgko_1_1ReadableFromMatrixData_af49b08a5018869d7e70ec2cbd1b17661}\label{classgko_1_1ReadableFromMatrixData_af49b08a5018869d7e70ec2cbd1b17661} 
using {\bfseries index\+\_\+type} = Index\+Type
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb}{read}} (const \doxymbox{\hyperlink{structgko_1_1matrix__data}{matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&data)=0
\begin{DoxyCompactList}\small\item\em Reads a matrix from a \doxylink{structgko_1_1matrix__data}{matrix\+\_\+data} structure. \end{DoxyCompactList}\item 
void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a7fc1141f76b70b6ca112c7b99387b8b7}{read}} (const \doxymbox{\hyperlink{classgko_1_1matrix__assembly__data}{matrix\+\_\+assembly\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&data)
\begin{DoxyCompactList}\small\item\em Reads a matrix from a \doxylink{classgko_1_1matrix__assembly__data}{matrix\+\_\+assembly\+\_\+data} structure. \end{DoxyCompactList}\item 
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a02785ab361765a981b9e1677704fffdb}{read}} (const \doxymbox{\hyperlink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&data)
\begin{DoxyCompactList}\small\item\em Reads a matrix from a \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. \end{DoxyCompactList}\item 
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a0fcdcdbef5e8d673bf19f5d5ab7afb45}{read}} (\doxymbox{\hyperlink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&\&data)
\begin{DoxyCompactList}\small\item\em Reads a matrix from a \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Value\+Type, typename Index\+Type$>$\newline
class gko::\+\+Readable\+From\+Matrix\+Data$<$ Value\+Type, Index\+Type $>$}
A \doxylink{classgko_1_1LinOp}{Lin\+Op} implementing this interface can read its data from a \doxylink{structgko_1_1matrix__data}{matrix\+\_\+data} structure. 

\label{doc-func-members}
\Hypertarget{classgko_1_1ReadableFromMatrixData_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{classgko_1_1ReadableFromMatrixData_a02785ab361765a981b9e1677704fffdb}\index{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}!read@{read}}
\index{read@{read}!gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily \label{classgko_1_1ReadableFromMatrixData_a02785ab361765a981b9e1677704fffdb} 
template$<$typename Value\+Type, typename Index\+Type$>$ \\
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData}{gko::\+\+Readable\+From\+Matrix\+Data}}$<$ Value\+Type, Index\+Type $>$::\+read (\begin{DoxyParamCaption}\item[{const \doxymbox{\hyperlink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&}]{data}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Reads a matrix from a \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. 


\begin{DoxyParams}{Parameters}
{\em data} & the \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{classgko_1_1device__matrix__data_ad76d20b33f8744baa54594a62d5a458c}{gko::\+device\+\_\+matrix\+\_\+data$<$ Value\+Type, Index\+Type $>$::\+copy\+\_\+to\+\_\+host()}}, and \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb}{read()}}.

\Hypertarget{classgko_1_1ReadableFromMatrixData_a7fc1141f76b70b6ca112c7b99387b8b7}\index{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}!read@{read}}
\index{read@{read}!gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily \label{classgko_1_1ReadableFromMatrixData_a7fc1141f76b70b6ca112c7b99387b8b7} 
template$<$typename Value\+Type, typename Index\+Type$>$ \\
void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData}{gko::\+\+Readable\+From\+Matrix\+Data}}$<$ Value\+Type, Index\+Type $>$::\+read (\begin{DoxyParamCaption}\item[{const \doxymbox{\hyperlink{classgko_1_1matrix__assembly__data}{matrix\+\_\+assembly\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&}]{data}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Reads a matrix from a \doxylink{classgko_1_1matrix__assembly__data}{matrix\+\_\+assembly\+\_\+data} structure. 


\begin{DoxyParams}{Parameters}
{\em data} & the \doxylink{classgko_1_1matrix__assembly__data}{matrix\+\_\+assembly\+\_\+data} structure \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{classgko_1_1matrix__assembly__data_a9a86018a5bd6475d8bd3c4ea229aee1d}{gko::\+matrix\+\_\+assembly\+\_\+data$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+ordered\+\_\+data()}}, and \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb}{read()}}.

\Hypertarget{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb}\index{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}!read@{read}}
\index{read@{read}!gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily \label{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb} 
template$<$typename Value\+Type, typename Index\+Type$>$ \\
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData}{gko::\+\+Readable\+From\+Matrix\+Data}}$<$ Value\+Type, Index\+Type $>$::\+read (\begin{DoxyParamCaption}\item[{const \doxymbox{\hyperlink{structgko_1_1matrix__data}{matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&}]{data}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Reads a matrix from a \doxylink{structgko_1_1matrix__data}{matrix\+\_\+data} structure. 


\begin{DoxyParams}{Parameters}
{\em data} & the \doxylink{structgko_1_1matrix__data}{matrix\+\_\+data} structure \\
\hline
\end{DoxyParams}


Implemented in \doxymbox{\hyperlink{classgko_1_1matrix_1_1Fbcsr_add32b80fe8abb9dde0c1c6eaaff9df07}{gko::\+matrix::\+\+Fbcsr$<$ Value\+Type, Index\+Type $>$}}.



Referenced by \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a02785ab361765a981b9e1677704fffdb}{read()}}, \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a7fc1141f76b70b6ca112c7b99387b8b7}{read()}}, and \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_a0fcdcdbef5e8d673bf19f5d5ab7afb45}{read()}}.

\Hypertarget{classgko_1_1ReadableFromMatrixData_a0fcdcdbef5e8d673bf19f5d5ab7afb45}\index{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}!read@{read}}
\index{read@{read}!gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$@{gko::ReadableFromMatrixData$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily \label{classgko_1_1ReadableFromMatrixData_a0fcdcdbef5e8d673bf19f5d5ab7afb45} 
template$<$typename Value\+Type, typename Index\+Type$>$ \\
virtual void \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData}{gko::\+\+Readable\+From\+Matrix\+Data}}$<$ Value\+Type, Index\+Type $>$::\+read (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data}}$<$ Value\+Type, Index\+Type $>$ \&\&}]{data}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Reads a matrix from a \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. 

The structure may be emptied by this function.


\begin{DoxyParams}{Parameters}
{\em data} & the \doxylink{classgko_1_1device__matrix__data}{device\+\_\+matrix\+\_\+data} structure. \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{classgko_1_1ReadableFromMatrixData_add5c12e23b3ac3c8fbd607fa5a9656bb}{read()}}.



The documentation for this class was generated from the following file:\+\begin{DoxyCompactItemize}
\item 
ginkgo/\+core/\+base/\+lin\+\_\+op.\+hpp\end{DoxyCompactItemize}
