\doxysection{gko::\+batch::\+matrix::\+Ell\texorpdfstring{$<$}{<} Value\+Type, Index\+Type \texorpdfstring{$>$}{>} Class Template Reference}
\hypertarget{classgko_1_1batch_1_1matrix_1_1Ell}{}\label{classgko_1_1batch_1_1matrix_1_1Ell}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}


\doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} is a sparse matrix format that stores the same number of nonzeros in each row, enabling coalesced accesses.  




{\ttfamily \+\#include $<$ginkgo/\+core/\+matrix/\+batch\+\_\+ell.\+hpp$>$}



Inheritance diagram for gko::\+batch::\+matrix::\+Ell\texorpdfstring{$<$}{<} Value\+Type, Index\+Type \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classgko_1_1batch_1_1matrix_1_1Ell__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for gko::\+batch::\+matrix::\+Ell\texorpdfstring{$<$}{<} Value\+Type, Index\+Type \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classgko_1_1batch_1_1matrix_1_1Ell__coll__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a30d5cbf34f8e1c84fc266f28d8f85b6d}\label{classgko_1_1batch_1_1matrix_1_1Ell_a30d5cbf34f8e1c84fc266f28d8f85b6d} 
using {\bfseries value\+\_\+type} = Value\+Type
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a686f74d8d7babb0c341a8609e59458de}\label{classgko_1_1batch_1_1matrix_1_1Ell_a686f74d8d7babb0c341a8609e59458de} 
using {\bfseries index\+\_\+type} = Index\+Type
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ac958af17b0169ef4771cb8d244b50eda}\label{classgko_1_1batch_1_1matrix_1_1Ell_ac958af17b0169ef4771cb8d244b50eda} 
using {\bfseries unbatch\+\_\+type} = \doxymbox{\hyperlink{classgko_1_1matrix_1_1Ell}{gko::\+matrix::\+\+Ell}}$<$value\+\_\+type, index\+\_\+type$>$
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a99d562a177cc885aefeb690ee9273f02}\label{classgko_1_1batch_1_1matrix_1_1Ell_a99d562a177cc885aefeb690ee9273f02} 
using {\bfseries absolute\+\_\+type} = \doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\+\_\+complex}}$<$Ell$>$
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a401d5454f0f300aacb1f99ccfe51d675}\label{classgko_1_1batch_1_1matrix_1_1Ell_a401d5454f0f300aacb1f99ccfe51d675} 
using {\bfseries complex\+\_\+type} = \doxymbox{\hyperlink{namespacegko_a4ad20e5381a84928753efde0b2bc7f85}{to\+\_\+complex}}$<$Ell$>$
\end{DoxyCompactItemize}
\doxysubsection*{Public Types inherited from \doxymbox{\hyperlink{classgko_1_1EnablePolymorphicAssignment}{gko::\+\+Enable\+Polymorphic\+Assignment$<$ Ell$<$ default\+\_\+precision, int32 $>$ $>$}}}
\begin{DoxyCompactItemize}
\item 
using {\bfseries result\+\_\+type}
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ae568d7fa69ebf0c8f7eaffff3ffb8dc9}\label{classgko_1_1batch_1_1matrix_1_1Ell_ae568d7fa69ebf0c8f7eaffff3ffb8dc9} 
void {\bfseries convert\+\_\+to} (Ell$<$ \doxymbox{\hyperlink{namespacegko_aee37f85b217e5e26fe64207d41fa4bac}{next\+\_\+precision}}$<$ Value\+Type $>$, Index\+Type $>$ \texorpdfstring{$\ast$}{*}result) const override
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a9c4c183404e32a24260d7b3cff910fb3}\label{classgko_1_1batch_1_1matrix_1_1Ell_a9c4c183404e32a24260d7b3cff910fb3} 
void {\bfseries move\+\_\+to} (Ell$<$ \doxymbox{\hyperlink{namespacegko_aee37f85b217e5e26fe64207d41fa4bac}{next\+\_\+precision}}$<$ Value\+Type $>$, Index\+Type $>$ \texorpdfstring{$\ast$}{*}result) override
\item 
std::\+unique\+\_\+ptr$<$ unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ac1f88db07ca3ed174ed4dd33542a635c}{create\+\_\+view\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} item\+\_\+id)
\begin{DoxyCompactList}\small\item\em Creates a mutable view (of \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{matrix::\+\+Ell} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell$<$value\+\_\+type$>$} object. \end{DoxyCompactList}\item 
std::\+unique\+\_\+ptr$<$ const unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a801ccf1a0069959a67ca3095903f4d02}{create\+\_\+const\+\_\+view\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} item\+\_\+id) const
\begin{DoxyCompactList}\small\item\em Creates a mutable view (of \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{matrix::\+\+Ell} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell$<$value\+\_\+type$>$} object.    \end{DoxyCompactList}\item 
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a4eee56c8f9f6c6fb9a237f446d2aec97}{get\+\_\+values}} () noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the matrix. \end{DoxyCompactList}\item 
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a7dc0308cdbeb2963a9a2e1a7dff4bf40}{get\+\_\+const\+\_\+values}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the matrix.    \end{DoxyCompactList}\item 
index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ad0cd74cd514f76bb13ecc8ad352e677e}{get\+\_\+col\+\_\+idxs}} () noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of column indices of the matrix. \end{DoxyCompactList}\item 
const index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a60dd5ea1813a7ea042e6ee006407ead0}{get\+\_\+const\+\_\+col\+\_\+idxs}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of column indices of the matrix.    \end{DoxyCompactList}\item 
index\+\_\+type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a4b7267cec4e848aa249c920733343951}{get\+\_\+num\+\_\+stored\+\_\+elements\+\_\+per\+\_\+row}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns the number of elements per row explicitly stored. \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a95d5b7fa35f32eb3bfcaf692099e528d}{get\+\_\+num\+\_\+stored\+\_\+elements}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns the number of elements explicitly stored in the batch matrix, cumulative across all the batch items. \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207}{get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns the number of stored elements in each batch item. \end{DoxyCompactList}\item 
index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ae03c358c869331760f55698145369e73}{get\+\_\+col\+\_\+idxs\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id) noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of col\+\_\+idxs of the matrix. \end{DoxyCompactList}\item 
const index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a3e068a9fb0d3e1476f221e0e8a1e0b74}{get\+\_\+const\+\_\+col\+\_\+idxs\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id) const noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of col\+\_\+idxs of the matrix.    \end{DoxyCompactList}\item 
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_afe5c1d5d310c76b01e789428b366da70}{get\+\_\+values\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id) noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the matrix for a specific batch item. \end{DoxyCompactList}\item 
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_aeda49f1a148d97753cf611f34d05dfd9}{get\+\_\+const\+\_\+values\+\_\+for\+\_\+item}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id) const noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the matrix for a specific batch item.    \end{DoxyCompactList}\item 
Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a4f6c25b9890b7aff0bc29cd0ee98580e}{apply}} (\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ b, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ x)
\begin{DoxyCompactList}\small\item\em Apply the matrix to a multi-\/vector. \end{DoxyCompactList}\item 
Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_aa562dba4cbc912febcfda934fba5329d}{apply}} (\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ alpha, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ b, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ beta, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ x)
\begin{DoxyCompactList}\small\item\em Apply the matrix to a multi-\/vector with a linear combination of the given input vector. \end{DoxyCompactList}\item 
const Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a161b12af939f212c4a747766adc82123}{apply}} (\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ b, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ x) const
\item 
const Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a7257cff800f7ed296d94ccf9683a2ac7}{apply}} (\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ alpha, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ b, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ beta, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ x) const
\item 
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_af146bd8371b20f5c77ba09c741c19a80}{scale}} (const \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ \&row\+\_\+scale, const \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ \&col\+\_\+scale)
\begin{DoxyCompactList}\small\item\em Performs in-\/place row and column scaling for this matrix. \end{DoxyCompactList}\item 
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_aa22f942ac1839ec42472c640ddd32a69}{add\+\_\+scaled\+\_\+identity}} (\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ alpha, \doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$ beta)
\begin{DoxyCompactList}\small\item\em Performs the operation this = alpha\texorpdfstring{$\ast$}{*}I + beta\texorpdfstring{$\ast$}{*}this. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions inherited from \doxymbox{\hyperlink{classgko_1_1EnablePolymorphicAssignment}{gko::\+\+Enable\+Polymorphic\+Assignment$<$ Ell$<$ default\+\_\+precision, int32 $>$ $>$}}}
\begin{DoxyCompactItemize}
\item 
void {\bfseries convert\+\_\+to} (result\+\_\+type \texorpdfstring{$\ast$}{*}result) const override
\item 
void {\bfseries move\+\_\+to} (result\+\_\+type \texorpdfstring{$\ast$}{*}result) override
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ac9f808ed2b9586b98f4f115576d2cd96}{create}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&size=\doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$\{\}, const Index\+Type num\+\_\+elems\+\_\+per\+\_\+row=0)
\begin{DoxyCompactList}\small\item\em Creates an uninitialized \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} matrix of the specified size. \end{DoxyCompactList}\item 
static std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b}{create}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&size, const Index\+Type num\+\_\+elems\+\_\+per\+\_\+row, \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ values, \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ index\+\_\+type $>$ col\+\_\+idxs)
\begin{DoxyCompactList}\small\item\em Creates a \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} matrix from an already allocated (and initialized) array. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Input\+Value\+Type, typename Col\+Index\+Type$>$ }\\static std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ad0759cb8706af4a4298bfcc692043257}{create}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&size, const Index\+Type num\+\_\+elems\+\_\+per\+\_\+row, std::\+initializer\+\_\+list$<$ Input\+Value\+Type $>$ values, std::\+initializer\+\_\+list$<$ Col\+Index\+Type $>$ col\+\_\+idxs)
\begin{DoxyCompactList}\small\item\em \doxylink{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b}{create(std::\+shared\+\_\+ptr$<$const Executor$>$,const batch\+\_\+dim$<$2$>$\&, const Index\+Type, array$<$value\+\_\+type$>$,array$<$index\+\_\+type$>$)} \end{DoxyCompactList}\item 
static std::\+unique\+\_\+ptr$<$ const Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a43d5b93a74ccd84dc47d9a4f0a71ec44}{create\+\_\+const}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&sizes, const index\+\_\+type num\+\_\+elems\+\_\+per\+\_\+row, gko::\+detail::\+const\+\_\+array\+\_\+view$<$ value\+\_\+type $>$ \&\&values, gko::\+detail::\+const\+\_\+array\+\_\+view$<$ index\+\_\+type $>$ \&\&col\+\_\+idxs)
\begin{DoxyCompactList}\small\item\em Creates a constant (immutable) batch ell matrix from a constant array. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a17ffa781ab66bf42509e9f5d81a9c54c}\label{classgko_1_1batch_1_1matrix_1_1Ell_a17ffa781ab66bf42509e9f5d81a9c54c} 
class {\bfseries Enable\+Polymorphic\+Object$<$ Ell, Batch\+Lin\+Op $>$}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ae0bf3149d3593c18eab41e41353060ca}\label{classgko_1_1batch_1_1matrix_1_1Ell_ae0bf3149d3593c18eab41e41353060ca} 
class {\bfseries Ell$<$ to\+\_\+complex$<$ Value\+Type $>$, Index\+Type $>$}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_aba8b53113706661e5ce8d6e2c9698da7}\label{classgko_1_1batch_1_1matrix_1_1Ell_aba8b53113706661e5ce8d6e2c9698da7} 
class {\bfseries Ell$<$ previous\+\_\+precision$<$ Value\+Type $>$, Index\+Type $>$}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$\newline
class gko::\+batch::\+matrix::\+\+Ell$<$ Value\+Type, Index\+Type $>$}
\doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} is a sparse matrix format that stores the same number of nonzeros in each row, enabling coalesced accesses. 

It is suitable for sparsity patterns that have a similar number of nonzeros in every row. The values are stored in a column-\/major fashion similar to the monolithic \doxylink{classgko_1_1matrix_1_1Ell}{gko::\+matrix::\+\+Ell} class.

Similar to the monolithic \doxylink{classgko_1_1matrix_1_1Ell}{gko::\+matrix::\+\+Ell} class, invalid\+\_\+index$<$\+Index\+Type$>$ is used as the column index for padded zero entries.

\begin{DoxyNote}{Note}
It is also assumed that the sparsity pattern of all the items in the batch is the same and therefore only a single copy of the sparsity pattern is stored.

Currently only Index\+Type of \doxylink{namespacegko_a16bd14c10900eb804d784908d8aab5ab}{int32} is supported.
\end{DoxyNote}

\begin{DoxyTemplParams}{Template Parameters}
{\em Value\+Type} & value precision of matrix elements \\
\hline
{\em Index\+Type} & index precision of matrix elements \\
\hline
\end{DoxyTemplParams}


\label{doc-func-members}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_aa22f942ac1839ec42472c640ddd32a69}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!add\_scaled\_identity@{add\_scaled\_identity}}
\index{add\_scaled\_identity@{add\_scaled\_identity}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{add\_scaled\_identity()}{add\_scaled\_identity()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_aa22f942ac1839ec42472c640ddd32a69} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+add\+\_\+scaled\+\_\+identity (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{alpha}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{beta}{}\end{DoxyParamCaption})}



Performs the operation this = alpha\texorpdfstring{$\ast$}{*}I + beta\texorpdfstring{$\ast$}{*}this. 


\begin{DoxyParams}{Parameters}
{\em alpha} & the scalar for identity \\
\hline
{\em beta} & the scalar to multiply this matrix\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
Performs the operation in-\/place for this batch matrix. 

This operation fails in case this matrix does not have all its diagonal entries. 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_aa562dba4cbc912febcfda934fba5329d}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_aa562dba4cbc912febcfda934fba5329d} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+apply (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{alpha}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{b}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{beta}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{x}{}\end{DoxyParamCaption})}



Apply the matrix to a multi-\/vector with a linear combination of the given input vector. 

Represents the matrix vector multiplication, x = alpha \texorpdfstring{$\ast$}{*} A
\begin{DoxyItemize}
\item b + beta \texorpdfstring{$\ast$}{*} x, where x and b are both multi-\/vectors.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em alpha} & the scalar to scale the matrix-\/vector product with \\
\hline
{\em b} & the multi-\/vector to be applied to \\
\hline
{\em beta} & the scalar to scale the x vector with \\
\hline
{\em x} & the output multi-\/vector \\
\hline
\end{DoxyParams}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a7257cff800f7ed296d94ccf9683a2ac7}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a7257cff800f7ed296d94ccf9683a2ac7} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+apply (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{alpha}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{b}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{beta}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{x}{}\end{DoxyParamCaption}) const}





\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a4f6c25b9890b7aff0bc29cd0ee98580e}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a4f6c25b9890b7aff0bc29cd0ee98580e} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+apply (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{b}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{x}{}\end{DoxyParamCaption})}



Apply the matrix to a multi-\/vector. 

Represents the matrix vector multiplication, x = A \texorpdfstring{$\ast$}{*} b, where x and b are both multi-\/vectors.


\begin{DoxyParams}{Parameters}
{\em b} & the multi-\/vector to be applied to \\
\hline
{\em x} & the output multi-\/vector \\
\hline
\end{DoxyParams}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a161b12af939f212c4a747766adc82123}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a161b12af939f212c4a747766adc82123} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const Ell \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+apply (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ const \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{b}{, }\item[{\doxymbox{\hyperlink{classgko_1_1ptr__param}{ptr\+\_\+param}}$<$ \doxymbox{\hyperlink{classgko_1_1batch_1_1MultiVector}{Multi\+Vector}}$<$ value\+\_\+type $>$ $>$}]{x}{}\end{DoxyParamCaption}) const}





\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&}]{size}{, }\item[{const Index\+Type}]{num\+\_\+elems\+\_\+per\+\_\+row}{, }\item[{\doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$}]{values}{, }\item[{\doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ index\+\_\+type $>$}]{col\+\_\+idxs}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates a \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} matrix from an already allocated (and initialized) array. 

The column indices array needs to be the same for all batch items.


\begin{DoxyParams}{Parameters}
{\em exec} & \doxylink{classgko_1_1Executor}{Executor} associated to the matrix \\
\hline
{\em size} & size of the matrix \\
\hline
{\em num\+\_\+elems\+\_\+per\+\_\+row} & the number of elements to be stored in each row \\
\hline
{\em values} & array of matrix values \\
\hline
{\em col\+\_\+idxs} & the col\+\_\+idxs array of a single batch item of the matrix.\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
If {\ttfamily values} is not an rvalue, not an array of Value\+Type, or is on the wrong executor, an internal copy will be created, and the original array data will not be used in the matrix.
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
A smart pointer to the newly created matrix. 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ad0759cb8706af4a4298bfcc692043257}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_ad0759cb8706af4a4298bfcc692043257} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
template$<$typename Input\+Value\+Type, typename Col\+Index\+Type$>$ \\
std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&}]{size}{, }\item[{const Index\+Type}]{num\+\_\+elems\+\_\+per\+\_\+row}{, }\item[{std::\+initializer\+\_\+list$<$ Input\+Value\+Type $>$}]{values}{, }\item[{std::\+initializer\+\_\+list$<$ Col\+Index\+Type $>$}]{col\+\_\+idxs}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



\doxylink{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b}{create(std::\+shared\+\_\+ptr$<$const Executor$>$,const batch\+\_\+dim$<$2$>$\&, const Index\+Type, array$<$value\+\_\+type$>$,array$<$index\+\_\+type$>$)} 

\doxylink{classgko_1_1batch_1_1matrix_1_1Ell_a64a97dc3e3bf38c071d05f7c2e2f589b}{create(std::\+shared\+\_\+ptr$<$const Executor$>$,const batch\+\_\+dim$<$2$>$\&, const Index\+Type, array$<$value\+\_\+type$>$,array$<$index\+\_\+type$>$)} 

References \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ac9f808ed2b9586b98f4f115576d2cd96}{create()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ac9f808ed2b9586b98f4f115576d2cd96}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_ac9f808ed2b9586b98f4f115576d2cd96} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
std::\+unique\+\_\+ptr$<$ Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&}]{size}{ = {\ttfamily \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$~2~$>$\{\}}, }\item[{const Index\+Type}]{num\+\_\+elems\+\_\+per\+\_\+row}{ = {\ttfamily 0}}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates an uninitialized \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{Ell} matrix of the specified size. 


\begin{DoxyParams}{Parameters}
{\em exec} & \doxylink{classgko_1_1Executor}{Executor} associated to the matrix \\
\hline
{\em size} & size of the matrix \\
\hline
{\em num\+\_\+elems\+\_\+per\+\_\+row} & the number of elements to be stored in each row\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A smart pointer to the newly created matrix. 
\end{DoxyReturn}


Referenced by \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_ad0759cb8706af4a4298bfcc692043257}{create()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a43d5b93a74ccd84dc47d9a4f0a71ec44}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create\_const@{create\_const}}
\index{create\_const@{create\_const}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create\_const()}{create\_const()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a43d5b93a74ccd84dc47d9a4f0a71ec44} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
std::\+unique\+\_\+ptr$<$ const Ell $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create\+\_\+const (\begin{DoxyParamCaption}\item[{std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$}]{exec}{, }\item[{const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&}]{sizes}{, }\item[{const index\+\_\+type}]{num\+\_\+elems\+\_\+per\+\_\+row}{, }\item[{gko::\+detail::\+const\+\_\+array\+\_\+view$<$ value\+\_\+type $>$ \&\&}]{values}{, }\item[{gko::\+detail::\+const\+\_\+array\+\_\+view$<$ index\+\_\+type $>$ \&\&}]{col\+\_\+idxs}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates a constant (immutable) batch ell matrix from a constant array. 

The column indices array needs to be the same for all batch items.


\begin{DoxyParams}{Parameters}
{\em exec} & the executor to create the matrix on \\
\hline
{\em size} & the dimensions of the matrix \\
\hline
{\em num\+\_\+elems\+\_\+per\+\_\+row} & the number of elements to be stored in each row \\
\hline
{\em values} & the value array of the matrix \\
\hline
{\em col\+\_\+idxs} & the col\+\_\+idxs array of a single batch item of the matrix.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A smart pointer to the constant matrix wrapping the input array (if it resides on the same executor as the matrix) or a copy of the array on the correct executor.

A smart pointer to the newly created matrix. 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a801ccf1a0069959a67ca3095903f4d02}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create\_const\_view\_for\_item@{create\_const\_view\_for\_item}}
\index{create\_const\_view\_for\_item@{create\_const\_view\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create\_const\_view\_for\_item()}{create\_const\_view\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a801ccf1a0069959a67ca3095903f4d02} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
std::\+unique\+\_\+ptr$<$ const unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create\+\_\+const\+\_\+view\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{item\+\_\+id}{}\end{DoxyParamCaption}) const}



Creates a mutable view (of \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{matrix::\+\+Ell} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell$<$value\+\_\+type$>$} object.    

Does not perform any deep copies, but only returns a view of the data.


\begin{DoxyParams}{Parameters}
{\em item\+\_\+id} & The index of the batch item\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell} object with the data from the batch item at the given index.    
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ac1f88db07ca3ed174ed4dd33542a635c}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!create\_view\_for\_item@{create\_view\_for\_item}}
\index{create\_view\_for\_item@{create\_view\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{create\_view\_for\_item()}{create\_view\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_ac1f88db07ca3ed174ed4dd33542a635c} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
std::\+unique\+\_\+ptr$<$ unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+create\+\_\+view\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{item\+\_\+id}{}\end{DoxyParamCaption})}



Creates a mutable view (of \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{matrix::\+\+Ell} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell$<$value\+\_\+type$>$} object. 

Does not perform any deep copies, but only returns a view of the data.


\begin{DoxyParams}{Parameters}
{\em item\+\_\+id} & The index of the batch item\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a \doxylink{classgko_1_1batch_1_1matrix_1_1Ell}{batch::\+matrix::\+\+Ell} object with the data from the batch item at the given index. 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ad0cd74cd514f76bb13ecc8ad352e677e}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_col\_idxs@{get\_col\_idxs}}
\index{get\_col\_idxs@{get\_col\_idxs}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_col\_idxs()}{get\_col\_idxs()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_ad0cd74cd514f76bb13ecc8ad352e677e} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+col\+\_\+idxs (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of column indices of the matrix. 

\begin{DoxyReturn}{Returns}
the pointer to the array of column indices 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_ae03c358c869331760f55698145369e73}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_col\_idxs\_for\_item@{get\_col\_idxs\_for\_item}}
\index{get\_col\_idxs\_for\_item@{get\_col\_idxs\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_col\_idxs\_for\_item()}{get\_col\_idxs\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_ae03c358c869331760f55698145369e73} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+col\+\_\+idxs\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of col\+\_\+idxs of the matrix. 

This is shared across all batch items.


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the id of the batch item.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the pointer to the array of col\+\_\+idxs 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a60dd5ea1813a7ea042e6ee006407ead0}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_const\_col\_idxs@{get\_const\_col\_idxs}}
\index{get\_const\_col\_idxs@{get\_const\_col\_idxs}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_col\_idxs()}{get\_const\_col\_idxs()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a60dd5ea1813a7ea042e6ee006407ead0} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+const\+\_\+col\+\_\+idxs (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of column indices of the matrix.    

\begin{DoxyReturn}{Returns}
the pointer to the array of column indices   
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This is the constant version of the function, which can be significantly more memory efficient than the non-\/constant version, so always prefer this version. 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a3e068a9fb0d3e1476f221e0e8a1e0b74}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_const\_col\_idxs\_for\_item@{get\_const\_col\_idxs\_for\_item}}
\index{get\_const\_col\_idxs\_for\_item@{get\_const\_col\_idxs\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_col\_idxs\_for\_item()}{get\_const\_col\_idxs\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a3e068a9fb0d3e1476f221e0e8a1e0b74} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const index\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+const\+\_\+col\+\_\+idxs\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of col\+\_\+idxs of the matrix.    

This is shared across all batch items.


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the id of the batch item.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the pointer to the array of col\+\_\+idxs   
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This is the constant version of the function, which can be significantly more memory efficient than the non-\/constant version, so always prefer this version. 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a7dc0308cdbeb2963a9a2e1a7dff4bf40}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_const\_values@{get\_const\_values}}
\index{get\_const\_values@{get\_const\_values}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_values()}{get\_const\_values()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a7dc0308cdbeb2963a9a2e1a7dff4bf40} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+const\+\_\+values (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of values of the matrix.    

\begin{DoxyReturn}{Returns}
the pointer to the array of values   
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This is the constant version of the function, which can be significantly more memory efficient than the non-\/constant version, so always prefer this version. 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_aeda49f1a148d97753cf611f34d05dfd9}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_const\_values\_for\_item@{get\_const\_values\_for\_item}}
\index{get\_const\_values\_for\_item@{get\_const\_values\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_values\_for\_item()}{get\_const\_values\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_aeda49f1a148d97753cf611f34d05dfd9} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+const\+\_\+values\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of values of the matrix for a specific batch item.    


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the id of the batch item.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the pointer to the array of values   
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This is the constant version of the function, which can be significantly more memory efficient than the non-\/constant version, so always prefer this version. 
\end{DoxyNote}


References \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207}{get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_num\_elements\_per\_item@{get\_num\_elements\_per\_item}}
\index{get\_num\_elements\_per\_item@{get\_num\_elements\_per\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_num\_elements\_per\_item()}{get\_num\_elements\_per\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns the number of stored elements in each batch item. 

\begin{DoxyReturn}{Returns}
the number of stored elements per batch item. 
\end{DoxyReturn}


References \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a95d5b7fa35f32eb3bfcaf692099e528d}{get\+\_\+num\+\_\+stored\+\_\+elements()}}.



Referenced by \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_aeda49f1a148d97753cf611f34d05dfd9}{get\+\_\+const\+\_\+values\+\_\+for\+\_\+item()}}, and \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_afe5c1d5d310c76b01e789428b366da70}{get\+\_\+values\+\_\+for\+\_\+item()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a95d5b7fa35f32eb3bfcaf692099e528d}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_num\_stored\_elements@{get\_num\_stored\_elements}}
\index{get\_num\_stored\_elements@{get\_num\_stored\_elements}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_num\_stored\_elements()}{get\_num\_stored\_elements()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a95d5b7fa35f32eb3bfcaf692099e528d} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+num\+\_\+stored\+\_\+elements (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns the number of elements explicitly stored in the batch matrix, cumulative across all the batch items. 

\begin{DoxyReturn}{Returns}
the number of elements explicitly stored in the vector, cumulative across all the batch items 
\end{DoxyReturn}


Referenced by \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207}{get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a4b7267cec4e848aa249c920733343951}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_num\_stored\_elements\_per\_row@{get\_num\_stored\_elements\_per\_row}}
\index{get\_num\_stored\_elements\_per\_row@{get\_num\_stored\_elements\_per\_row}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_num\_stored\_elements\_per\_row()}{get\_num\_stored\_elements\_per\_row()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a4b7267cec4e848aa249c920733343951} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
index\+\_\+type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+num\+\_\+stored\+\_\+elements\+\_\+per\+\_\+row (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns the number of elements per row explicitly stored. 

\begin{DoxyReturn}{Returns}
the number of elements stored in each row of the ELL matrix. Same for each batch item 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_a4eee56c8f9f6c6fb9a237f446d2aec97}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_values@{get\_values}}
\index{get\_values@{get\_values}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_values()}{get\_values()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_a4eee56c8f9f6c6fb9a237f446d2aec97} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+values (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of values of the matrix. 

\begin{DoxyReturn}{Returns}
the pointer to the array of values 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_afe5c1d5d310c76b01e789428b366da70}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!get\_values\_for\_item@{get\_values\_for\_item}}
\index{get\_values\_for\_item@{get\_values\_for\_item}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{get\_values\_for\_item()}{get\_values\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_afe5c1d5d310c76b01e789428b366da70} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+get\+\_\+values\+\_\+for\+\_\+item (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of values of the matrix for a specific batch item. 


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the id of the batch item.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the pointer to the array of values 
\end{DoxyReturn}


References \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell_a66f9fb4a46aee82750d8ef185149d207}{get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Ell_af146bd8371b20f5c77ba09c741c19a80}\index{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}!scale@{scale}}
\index{scale@{scale}!gko::batch::matrix::Ell$<$ ValueType, IndexType $>$@{gko::batch::matrix::Ell$<$ ValueType, IndexType $>$}}
\doxysubsubsection{\texorpdfstring{scale()}{scale()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Ell_af146bd8371b20f5c77ba09c741c19a80} 
template$<$typename Value\+Type = default\+\_\+precision, typename Index\+Type = int32$>$ \\
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Ell}{gko::\+batch::\+matrix::\+\+Ell}}$<$ Value\+Type, Index\+Type $>$::\+scale (\begin{DoxyParamCaption}\item[{const \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ \&}]{row\+\_\+scale}{, }\item[{const \doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ \&}]{col\+\_\+scale}{}\end{DoxyParamCaption})}



Performs in-\/place row and column scaling for this matrix. 


\begin{DoxyParams}{Parameters}
{\em row\+\_\+scale} & the row scalars \\
\hline
{\em col\+\_\+scale} & the column scalars \\
\hline
\end{DoxyParams}


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