\doxysection{gko::\+segmented\+\_\+array\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>} Struct Template Reference}
\hypertarget{structgko_1_1segmented__array}{}\label{structgko_1_1segmented__array}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}


A minimal interface for a segmented array.  




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



Inheritance diagram for gko::\+segmented\+\_\+array\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{structgko_1_1segmented__array__inherit__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec)
\begin{DoxyCompactList}\small\item\em Create an empty segmented array. \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{structgko_1_1segmented__array_a392c0c6a7ec9d2b03d2a3cf81a8d22db}{segmented\+\_\+array}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const segmented\+\_\+array \&other)
\begin{DoxyCompactList}\small\item\em Copies a segmented array to a different executor. \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{structgko_1_1segmented__array_a78639e5673e0614b2dc510eb26838706}{segmented\+\_\+array}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, segmented\+\_\+array \&\&other)
\begin{DoxyCompactList}\small\item\em Moves a segmented array to a different executor. \end{DoxyCompactList}\item 
\Hypertarget{structgko_1_1segmented__array_a24c9bf02d34019b1f61fe0e0192e5f42}\label{structgko_1_1segmented__array_a24c9bf02d34019b1f61fe0e0192e5f42} 
{\bfseries segmented\+\_\+array} (const segmented\+\_\+array \&other)
\item 
\Hypertarget{structgko_1_1segmented__array_a3b09396e10856a3643c1e96a82af364c}\label{structgko_1_1segmented__array_a3b09396e10856a3643c1e96a82af364c} 
{\bfseries segmented\+\_\+array} (segmented\+\_\+array \&\&other) noexcept(false)
\item 
\Hypertarget{structgko_1_1segmented__array_a3315d68323ee867f0f64fec35966004d}\label{structgko_1_1segmented__array_a3315d68323ee867f0f64fec35966004d} 
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \& {\bfseries operator=} (const \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \&other)
\item 
\Hypertarget{structgko_1_1segmented__array_a02d9fac7b2da76954437e2bb44a32d39}\label{structgko_1_1segmented__array_a02d9fac7b2da76954437e2bb44a32d39} 
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \& {\bfseries operator=} (\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \&\&) noexcept(false)
\item 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{structgko_1_1segmented__array_a8e919761b20e50b3129374496fe6c787}{get\+\_\+size}} () const
\begin{DoxyCompactList}\small\item\em Get the total size of the stored buffer. \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{structgko_1_1segmented__array_a67bd3d0c920bdaa58a2df398df947170}{get\+\_\+segment\+\_\+count}} () const
\begin{DoxyCompactList}\small\item\em Get the number of segments. \end{DoxyCompactList}\item 
T \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{structgko_1_1segmented__array_a8b04a39c9bb042442fecf0e16842f7f6}{get\+\_\+flat\+\_\+data}} ()
\begin{DoxyCompactList}\small\item\em Access to the flat buffer. \end{DoxyCompactList}\item 
const T \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{structgko_1_1segmented__array_a1f9b52d6f937feec89fe6dd809b02460}{get\+\_\+const\+\_\+flat\+\_\+data}} () const
\begin{DoxyCompactList}\small\item\em Const-\/access to the flat buffer. \end{DoxyCompactList}\item 
const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \& \doxymbox{\hyperlink{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac}{get\+\_\+offsets}} () const
\begin{DoxyCompactList}\small\item\em Access to the segment offsets. \end{DoxyCompactList}\item 
std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor}} () const
\begin{DoxyCompactList}\small\item\em Access the executor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array_ad6192b7cc6d0722090172cf856a44ad0}{create\+\_\+from\+\_\+sizes}} (const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \&sizes)
\begin{DoxyCompactList}\small\item\em Creates an uninitialized segmented array with predefined segment sizes. \end{DoxyCompactList}\item 
static \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array_a5d97107168d4862706196522b7811a72}{create\+\_\+from\+\_\+sizes}} (\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ T $>$ buffer, const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \&sizes)
\begin{DoxyCompactList}\small\item\em Creates a segmented array from a flat buffer and segment sizes. \end{DoxyCompactList}\item 
static \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array_af4e6803142d06709ad3ab8e935c40ee7}{create\+\_\+from\+\_\+offsets}} (\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ offsets)
\begin{DoxyCompactList}\small\item\em Creates an uninitialized segmented array from offsets. \end{DoxyCompactList}\item 
static \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array_a421743af79c9b15903988ffa38d9f5f0}{create\+\_\+from\+\_\+offsets}} (\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ T $>$ buffer, \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ offsets)
\begin{DoxyCompactList}\small\item\em Creates a segmented array from a flat buffer and offsets. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
struct gko::\+segmented\+\_\+array$<$ T $>$}
A minimal interface for a segmented array. 

The segmented array is stored as a flat buffer with an offsets array. The segment {\ttfamily i} contains the index range {\ttfamily \+[offset\+[i]\+, offset\+[i + 1]\+)} of the flat buffer.


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & value type stored in the arrays \\
\hline
\end{DoxyTemplParams}


\label{doc-constructors}
\Hypertarget{structgko_1_1segmented__array_doc-constructors}
\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!segmented\_array@{segmented\_array}}
\index{segmented\_array@{segmented\_array}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{segmented\_array()}{segmented\_array()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+segmented\+\_\+array (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



Create an empty segmented array. 


\begin{DoxyParams}{Parameters}
{\em exec} & executor for storage arrays \\
\hline
\end{DoxyParams}


Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_af4e6803142d06709ad3ab8e935c40ee7}{create\+\_\+from\+\_\+offsets()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_a421743af79c9b15903988ffa38d9f5f0}{create\+\_\+from\+\_\+offsets()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_ad6192b7cc6d0722090172cf856a44ad0}{create\+\_\+from\+\_\+sizes()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_a5d97107168d4862706196522b7811a72}{create\+\_\+from\+\_\+sizes()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_a392c0c6a7ec9d2b03d2a3cf81a8d22db}{segmented\+\_\+array()}}, and \doxymbox{\hyperlink{structgko_1_1segmented__array_a78639e5673e0614b2dc510eb26838706}{segmented\+\_\+array()}}.

\Hypertarget{structgko_1_1segmented__array_a392c0c6a7ec9d2b03d2a3cf81a8d22db}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!segmented\_array@{segmented\_array}}
\index{segmented\_array@{segmented\_array}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{segmented\_array()}{segmented\_array()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a392c0c6a7ec9d2b03d2a3cf81a8d22db} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+segmented\+\_\+array (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{const segmented\+\_\+array$<$ T $>$ \&}]{other}{}\end{DoxyParamCaption})}



Copies a segmented array to a different executor. 


\begin{DoxyParams}{Parameters}
{\em exec} & the executor to copy to \\
\hline
{\em other} & the segmented array to copy from \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.

\Hypertarget{structgko_1_1segmented__array_a78639e5673e0614b2dc510eb26838706}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!segmented\_array@{segmented\_array}}
\index{segmented\_array@{segmented\_array}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{segmented\_array()}{segmented\_array()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a78639e5673e0614b2dc510eb26838706} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+segmented\+\_\+array (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{segmented\+\_\+array$<$ T $>$ \&\&}]{other}{}\end{DoxyParamCaption})}



Moves a segmented array to a different executor. 


\begin{DoxyParams}{Parameters}
{\em exec} & the executor to move to \\
\hline
{\em other} & the segmented array to move from \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.



\label{doc-func-members}
\Hypertarget{structgko_1_1segmented__array_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{structgko_1_1segmented__array_af4e6803142d06709ad3ab8e935c40ee7}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!create\_from\_offsets@{create\_from\_offsets}}
\index{create\_from\_offsets@{create\_from\_offsets}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{create\_from\_offsets()}{create\_from\_offsets()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_af4e6803142d06709ad3ab8e935c40ee7} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+create\+\_\+from\+\_\+offsets (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$}]{offsets}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates an uninitialized segmented array from offsets. 


\begin{DoxyParams}{Parameters}
{\em offsets} & the index offsets for each segment, and the total size of the buffer as last element \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor()}}.

\Hypertarget{structgko_1_1segmented__array_a421743af79c9b15903988ffa38d9f5f0}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!create\_from\_offsets@{create\_from\_offsets}}
\index{create\_from\_offsets@{create\_from\_offsets}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{create\_from\_offsets()}{create\_from\_offsets()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a421743af79c9b15903988ffa38d9f5f0} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+create\+\_\+from\+\_\+offsets (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ T $>$}]{buffer}{, }\item[{\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$}]{offsets}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates a segmented array from a flat buffer and offsets. 


\begin{DoxyParams}{Parameters}
{\em buffer} & the flat buffer whose size has to match the last element of offsets \\
\hline
{\em offsets} & the index offsets for each segment, and the total size of the buffer as last element \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.

\Hypertarget{structgko_1_1segmented__array_ad6192b7cc6d0722090172cf856a44ad0}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!create\_from\_sizes@{create\_from\_sizes}}
\index{create\_from\_sizes@{create\_from\_sizes}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{create\_from\_sizes()}{create\_from\_sizes()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_ad6192b7cc6d0722090172cf856a44ad0} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+create\+\_\+from\+\_\+sizes (\begin{DoxyParamCaption}\item[{const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \&}]{sizes}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates an uninitialized segmented array with predefined segment sizes. 


\begin{DoxyParams}{Parameters}
{\em exec} & executor for storage arrays \\
\hline
{\em sizes} & the sizes of each segment \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.

\Hypertarget{structgko_1_1segmented__array_a5d97107168d4862706196522b7811a72}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!create\_from\_sizes@{create\_from\_sizes}}
\index{create\_from\_sizes@{create\_from\_sizes}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{create\_from\_sizes()}{create\_from\_sizes()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a5d97107168d4862706196522b7811a72} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+create\+\_\+from\+\_\+sizes (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ T $>$}]{buffer}{, }\item[{const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \&}]{sizes}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates a segmented array from a flat buffer and segment sizes. 


\begin{DoxyParams}{Parameters}
{\em buffer} & the flat buffer whose size has to match the sum of sizes \\
\hline
{\em sizes} & the sizes of each segment \\
\hline
\end{DoxyParams}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.

\Hypertarget{structgko_1_1segmented__array_a1f9b52d6f937feec89fe6dd809b02460}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_const\_flat\_data@{get\_const\_flat\_data}}
\index{get\_const\_flat\_data@{get\_const\_flat\_data}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_flat\_data()}{get\_const\_flat\_data()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a1f9b52d6f937feec89fe6dd809b02460} 
template$<$typename T$>$ \\
const T \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+const\+\_\+flat\+\_\+data (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const}



Const-\/access to the flat buffer. 

\begin{DoxyReturn}{Returns}
the flat buffer 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a1f9b52d6f937feec89fe6dd809b02460}{get\+\_\+const\+\_\+flat\+\_\+data()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_a1f9b52d6f937feec89fe6dd809b02460}{get\+\_\+const\+\_\+flat\+\_\+data()}}.

\Hypertarget{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_executor@{get\_executor}}
\index{get\_executor@{get\_executor}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_executor()}{get\_executor()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932} 
template$<$typename T$>$ \\
std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+executor (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const}



Access the executor. 

\begin{DoxyReturn}{Returns}
the executor 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_af4e6803142d06709ad3ab8e935c40ee7}{create\+\_\+from\+\_\+offsets()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor()}}, \doxymbox{\hyperlink{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac}{get\+\_\+offsets()}}, and \doxymbox{\hyperlink{structgko_1_1segmented__array_a550323a47257c9af8fdc96bc5a72b950}{segmented\+\_\+array()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor()}}.

\Hypertarget{structgko_1_1segmented__array_a8b04a39c9bb042442fecf0e16842f7f6}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_flat\_data@{get\_flat\_data}}
\index{get\_flat\_data@{get\_flat\_data}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_flat\_data()}{get\_flat\_data()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a8b04a39c9bb042442fecf0e16842f7f6} 
template$<$typename T$>$ \\
T \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+flat\+\_\+data (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})}



Access to the flat buffer. 

\begin{DoxyReturn}{Returns}
the flat buffer 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a8b04a39c9bb042442fecf0e16842f7f6}{get\+\_\+flat\+\_\+data()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_a8b04a39c9bb042442fecf0e16842f7f6}{get\+\_\+flat\+\_\+data()}}.

\Hypertarget{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_offsets@{get\_offsets}}
\index{get\_offsets@{get\_offsets}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_offsets()}{get\_offsets()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac} 
template$<$typename T$>$ \\
const \doxymbox{\hyperlink{classgko_1_1array}{gko::\+array}}$<$ \doxymbox{\hyperlink{namespacegko_a913ec044df518649fa5a891f8dffae34}{int64}} $>$ \& \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+offsets (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const}



Access to the segment offsets. 

\begin{DoxyReturn}{Returns}
the segment offsets 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac}{get\+\_\+offsets()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_ad0efe2e79dde2117d3e632a90147e932}{get\+\_\+executor()}}, and \doxymbox{\hyperlink{structgko_1_1segmented__array_ae3259b2190ca3226d49dd3ac204a2bac}{get\+\_\+offsets()}}.

\Hypertarget{structgko_1_1segmented__array_a67bd3d0c920bdaa58a2df398df947170}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_segment\_count@{get\_segment\_count}}
\index{get\_segment\_count@{get\_segment\_count}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_segment\_count()}{get\_segment\_count()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a67bd3d0c920bdaa58a2df398df947170} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+segment\+\_\+count (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const}



Get the number of segments. 

\begin{DoxyReturn}{Returns}
the number of segments 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a67bd3d0c920bdaa58a2df398df947170}{get\+\_\+segment\+\_\+count()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_a67bd3d0c920bdaa58a2df398df947170}{get\+\_\+segment\+\_\+count()}}.

\Hypertarget{structgko_1_1segmented__array_a8e919761b20e50b3129374496fe6c787}\index{gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}!get\_size@{get\_size}}
\index{get\_size@{get\_size}!gko::segmented\_array$<$ T $>$@{gko::segmented\_array$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{get\_size()}{get\_size()}}
{\footnotesize\ttfamily \label{structgko_1_1segmented__array_a8e919761b20e50b3129374496fe6c787} 
template$<$typename T$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{structgko_1_1segmented__array}{gko::\+segmented\+\_\+array}}$<$ T $>$::\+get\+\_\+size (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const}



Get the total size of the stored buffer. 

\begin{DoxyReturn}{Returns}
the total size of the stored buffer. 
\end{DoxyReturn}


References \doxymbox{\hyperlink{structgko_1_1segmented__array_a8e919761b20e50b3129374496fe6c787}{get\+\_\+size()}}.



Referenced by \doxymbox{\hyperlink{structgko_1_1segmented__array_a8e919761b20e50b3129374496fe6c787}{get\+\_\+size()}}.



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