\doxysection{gko::\+batch::\+matrix::\+Dense\texorpdfstring{$<$}{<} Value\+Type \texorpdfstring{$>$}{>} Class Template Reference}
\hypertarget{classgko_1_1batch_1_1matrix_1_1Dense}{}\label{classgko_1_1batch_1_1matrix_1_1Dense}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}


\doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} is a batch matrix format which explicitly stores all values of the matrix in each of the batches.  




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



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


Collaboration diagram for gko::\+batch::\+matrix::\+Dense\texorpdfstring{$<$}{<} Value\+Type \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classgko_1_1batch_1_1matrix_1_1Dense__coll__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ad11f93f20920cebbf80a3a6ceceaac4a}\label{classgko_1_1batch_1_1matrix_1_1Dense_ad11f93f20920cebbf80a3a6ceceaac4a} 
using {\bfseries value\+\_\+type} = Value\+Type
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ad17a0069e0803318f77b7daa0cae32f9}\label{classgko_1_1batch_1_1matrix_1_1Dense_ad17a0069e0803318f77b7daa0cae32f9} 
using {\bfseries index\+\_\+type} = \doxymbox{\hyperlink{namespacegko_a16bd14c10900eb804d784908d8aab5ab}{int32}}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a68f4206854774708f73698ef9116facc}\label{classgko_1_1batch_1_1matrix_1_1Dense_a68f4206854774708f73698ef9116facc} 
using {\bfseries transposed\+\_\+type} = Dense$<$Value\+Type$>$
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_af137c2b97280ce934b0a61b7c2ef6e40}\label{classgko_1_1batch_1_1matrix_1_1Dense_af137c2b97280ce934b0a61b7c2ef6e40} 
using {\bfseries unbatch\+\_\+type} = \doxymbox{\hyperlink{classgko_1_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense}}$<$Value\+Type$>$
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ad8300b807cff4c3bcd552b995837b045}\label{classgko_1_1batch_1_1matrix_1_1Dense_ad8300b807cff4c3bcd552b995837b045} 
using {\bfseries absolute\+\_\+type} = \doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\+\_\+complex}}$<$Dense$>$
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_aa16b0a944a5ff8b04897e8e31ed36d2e}\label{classgko_1_1batch_1_1matrix_1_1Dense_aa16b0a944a5ff8b04897e8e31ed36d2e} 
using {\bfseries complex\+\_\+type} = \doxymbox{\hyperlink{namespacegko_a4ad20e5381a84928753efde0b2bc7f85}{to\+\_\+complex}}$<$Dense$>$
\end{DoxyCompactItemize}
\doxysubsection*{Public Types inherited from \doxymbox{\hyperlink{classgko_1_1EnablePolymorphicAssignment}{gko::\+\+Enable\+Polymorphic\+Assignment$<$ Dense$<$ default\+\_\+precision $>$ $>$}}}
\begin{DoxyCompactItemize}
\item 
using {\bfseries result\+\_\+type}
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ac268bd57df3c93aac04a2c0c57b7a2be}\label{classgko_1_1batch_1_1matrix_1_1Dense_ac268bd57df3c93aac04a2c0c57b7a2be} 
void {\bfseries convert\+\_\+to} (Dense$<$ \doxymbox{\hyperlink{namespacegko_aee37f85b217e5e26fe64207d41fa4bac}{next\+\_\+precision}}$<$ Value\+Type $>$ $>$ \texorpdfstring{$\ast$}{*}result) const override
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_addb8c246f933b7a93f8b7fc49b7a882f}\label{classgko_1_1batch_1_1matrix_1_1Dense_addb8c246f933b7a93f8b7fc49b7a882f} 
void {\bfseries move\+\_\+to} (Dense$<$ \doxymbox{\hyperlink{namespacegko_aee37f85b217e5e26fe64207d41fa4bac}{next\+\_\+precision}}$<$ Value\+Type $>$ $>$ \texorpdfstring{$\ast$}{*}result) override
\item 
std::\+unique\+\_\+ptr$<$ unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a22c9b493e93ca63a0f3dcb6000e6fff6}{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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense$<$value\+\_\+type$>$} object. \end{DoxyCompactList}\item 
std::\+unique\+\_\+ptr$<$ const unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ab906eae08119b036f2ac5a26a56b16b8}{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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense$<$value\+\_\+type$>$} object.    \end{DoxyCompactList}\item 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a9a55a60161580b34da0acd6a9af1f278}{get\+\_\+cumulative\+\_\+offset}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id) const
\begin{DoxyCompactList}\small\item\em Get the cumulative storage size offset. \end{DoxyCompactList}\item 
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a6230225be6d912b9d8f72ade4a098c48}{get\+\_\+values}} () noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the multi-\/vector. \end{DoxyCompactList}\item 
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_af89bd9c5040ed7dd79cfd112d853b2b1}{get\+\_\+const\+\_\+values}} () const noexcept
\begin{DoxyCompactList}\small\item\em Returns a pointer to the array of values of the multi-\/vector.    \end{DoxyCompactList}\item 
value\+\_\+type \& \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ac0004ba648096ee1769c51b8b4c2b367}{at}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} row, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} col)
\begin{DoxyCompactList}\small\item\em Returns a single element for a particular batch item. \end{DoxyCompactList}\item 
value\+\_\+type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a699398ed2e99ce8224ec2fc9fb6d2069}{at}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} row, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} col) const
\begin{DoxyCompactList}\small\item\em Returns a single element for a particular batch item.    \end{DoxyCompactList}\item 
Value\+Type \& \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_aa13885ff00e2bfb233bf475556fc4b0a}{at}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} idx) noexcept
\begin{DoxyCompactList}\small\item\em Returns a single element for a particular batch item. \end{DoxyCompactList}\item 
Value\+Type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ae7394aa20cd43578c691995b81516939}{at}} (\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} batch\+\_\+id, \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} idx) const noexcept
\begin{DoxyCompactList}\small\item\em Returns a single element for a particular batch item.    \end{DoxyCompactList}\item 
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_abe0a01ab85963a20386e6ca2c064b582}{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_1Dense_afb7ed5a66d88dcd971128089422a3672}{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 
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ad8eb22005182873bb825f480d433a155}{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_1Dense_a1711cd053116a336e16953af10fcf8c8}{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 
Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a62bcdc87d7cc6ec7672f54cbedd55aff}{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 
Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_adf941f38aa93727796d9d1f0abbb755f}{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 Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a4312bd8ce39e24a2ce6230ff5fdc4a83}{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 Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_adbb4ad11cea3ffc2aaeebf8e726e92c0}{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_1Dense_a964f12513ce49375e6e35a2d70bd5dd5}{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_1Dense_ad4434699a5858fb5fff0b478cca0c753}{scale\+\_\+add}} (\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_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense}}$<$ value\+\_\+type $>$ $>$ b)
\begin{DoxyCompactList}\small\item\em Performs the operation this = alpha\texorpdfstring{$\ast$}{*}this + b. \end{DoxyCompactList}\item 
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ace47e041c2848a059439ecc5b96c2810}{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$<$ Dense$<$ default\+\_\+precision $>$ $>$}}}
\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$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_aab5c2438bd15c76b499b86de2ca4507a}{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 $>$\{\})
\begin{DoxyCompactList}\small\item\em Creates an uninitialized \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} matrix of the specified size. \end{DoxyCompactList}\item 
static std::\+unique\+\_\+ptr$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a1435a7379f4af08f142eb2a3155e5afc}{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{classgko_1_1array}{array}}$<$ value\+\_\+type $>$ values)
\begin{DoxyCompactList}\small\item\em Creates a \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} matrix from an already allocated (and initialized) array. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Input\+Value\+Type$>$ }\\static std::\+unique\+\_\+ptr$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_a3c287fd1558ae175a8420cc5c4f56fa4}{create}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&size, std::\+initializer\+\_\+list$<$ Input\+Value\+Type $>$ values)
\begin{DoxyCompactList}\small\item\em \doxylink{classgko_1_1batch_1_1matrix_1_1Dense_a1435a7379f4af08f142eb2a3155e5afc}{create(std::\+shared\+\_\+ptr$<$const Executor$>$,const batch\+\_\+dim$<$2$>$\&, array$<$value\+\_\+type$>$)} \end{DoxyCompactList}\item 
static std::\+unique\+\_\+ptr$<$ const Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense_ab9a2a2cdc6319b4d4bcbdacdbac35fe4}{create\+\_\+const}} (std::\+shared\+\_\+ptr$<$ const \doxymbox{\hyperlink{classgko_1_1Executor}{Executor}} $>$ exec, const \doxymbox{\hyperlink{structgko_1_1batch__dim}{batch\+\_\+dim}}$<$ 2 $>$ \&sizes, gko::\+detail::\+const\+\_\+array\+\_\+view$<$ Value\+Type $>$ \&\&values)
\begin{DoxyCompactList}\small\item\em Creates a constant (immutable) batch dense matrix from a constant array. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_afca3514210279c28d0cae537f53ccf12}\label{classgko_1_1batch_1_1matrix_1_1Dense_afca3514210279c28d0cae537f53ccf12} 
class {\bfseries Enable\+Polymorphic\+Object$<$ Dense, Batch\+Lin\+Op $>$}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a6671ddb996a2a810738a6ddb29fbe83b}\label{classgko_1_1batch_1_1matrix_1_1Dense_a6671ddb996a2a810738a6ddb29fbe83b} 
class {\bfseries Dense$<$ to\+\_\+complex$<$ Value\+Type $>$ $>$}
\item 
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a95c21b65ca8cb3127f8503fc890067d2}\label{classgko_1_1batch_1_1matrix_1_1Dense_a95c21b65ca8cb3127f8503fc890067d2} 
class {\bfseries Dense$<$ previous\+\_\+precision$<$ Value\+Type $>$ $>$}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Value\+Type = default\+\_\+precision$>$\newline
class gko::\+batch::\+matrix::\+\+Dense$<$ Value\+Type $>$}
\doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} is a batch matrix format which explicitly stores all values of the matrix in each of the batches. 

The values in each of the batches are stored in row-\/major format (values belonging to the same row appear consecutive in the memory and the values of each batch item are also stored consecutively in memory).

\begin{DoxyNote}{Note}
Though the storage layout is the same as the multi-\/vector object, the class semantics and the operations it aims to provide are different. Hence it is recommended to create multi-\/vector objects if the user means to view the data as a set of vectors.
\end{DoxyNote}

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


\label{doc-func-members}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_doc-func-members}
\doxysubsection{Member Function Documentation}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ace47e041c2848a059439ecc5b96c2810}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!add\_scaled\_identity@{add\_scaled\_identity}}
\index{add\_scaled\_identity@{add\_scaled\_identity}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{add\_scaled\_identity()}{add\_scaled\_identity()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ace47e041c2848a059439ecc5b96c2810} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_adf941f38aa93727796d9d1f0abbb755f}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_adf941f38aa93727796d9d1f0abbb755f} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1Dense_adbb4ad11cea3ffc2aaeebf8e726e92c0}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_adbb4ad11cea3ffc2aaeebf8e726e92c0} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
const Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1Dense_a62bcdc87d7cc6ec7672f54cbedd55aff}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a62bcdc87d7cc6ec7672f54cbedd55aff} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1Dense_a4312bd8ce39e24a2ce6230ff5fdc4a83}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!apply@{apply}}
\index{apply@{apply}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a4312bd8ce39e24a2ce6230ff5fdc4a83} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
const Dense \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1Dense_ae7394aa20cd43578c691995b81516939}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!at@{at}}
\index{at@{at}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{at()}{at()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ae7394aa20cd43578c691995b81516939} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
Value\+Type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+at (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{idx}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a single element for a particular batch item.    


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the batch item index to be queried \\
\hline
{\em row} & the row of the requested element \\
\hline
{\em col} & the column of the requested element\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
the method has to be called on the same \doxylink{classgko_1_1Executor}{Executor} the matrix is stored at (e.\+g. trying to call this method on a GPU \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} object from the OMP may result in incorrect behaviour)    
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_aa13885ff00e2bfb233bf475556fc4b0a}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!at@{at}}
\index{at@{at}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{at()}{at()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_aa13885ff00e2bfb233bf475556fc4b0a} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
Value\+Type \& \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+at (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{idx}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a single element for a particular batch item. 

Useful for iterating across all elements of the matrix. However, it is less efficient than the two-\/parameter variant of this method.


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the batch item index to be queried \\
\hline
{\em idx} & a linear index of the requested element\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
the method has to be called on the same \doxylink{classgko_1_1Executor}{Executor} the matrix is stored at (e.\+g. trying to call this method on a GPU \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} object from the OMP may result in incorrect behaviour) 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ac0004ba648096ee1769c51b8b4c2b367}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!at@{at}}
\index{at@{at}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{at()}{at()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ac0004ba648096ee1769c51b8b4c2b367} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
value\+\_\+type \& \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+at (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{row}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{col}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Returns a single element for a particular batch item. 


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the batch item index to be queried \\
\hline
{\em row} & the row of the requested element \\
\hline
{\em col} & the column of the requested element\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
the method has to be called on the same \doxylink{classgko_1_1Executor}{Executor} the matrix is stored at (e.\+g. trying to call this method on a GPU \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} object from the OMP may result in incorrect behaviour) 
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a699398ed2e99ce8224ec2fc9fb6d2069}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!at@{at}}
\index{at@{at}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{at()}{at()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a699398ed2e99ce8224ec2fc9fb6d2069} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
value\+\_\+type \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+at (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{row}{, }\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{col}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Returns a single element for a particular batch item.    


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the batch item index to be queried \\
\hline
{\em row} & the row of the requested element \\
\hline
{\em col} & the column of the requested element\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
the method has to be called on the same \doxylink{classgko_1_1Executor}{Executor} the matrix is stored at (e.\+g. trying to call this method on a GPU \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} object from the OMP may result in incorrect behaviour)    
\end{DoxyNote}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a1435a7379f4af08f142eb2a3155e5afc}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a1435a7379f4af08f142eb2a3155e5afc} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
std::\+unique\+\_\+ptr$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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[{\doxymbox{\hyperlink{classgko_1_1array}{array}}$<$ value\+\_\+type $>$}]{values}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



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


\begin{DoxyParams}{Parameters}
{\em exec} & \doxylink{classgko_1_1Executor}{Executor} associated to the matrix \\
\hline
{\em size} & sizes of the batch matrices in a \doxylink{structgko_1_1batch__dim}{batch\+\_\+dim} object \\
\hline
{\em values} & array of matrix values\\
\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_1Dense_a3c287fd1558ae175a8420cc5c4f56fa4}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a3c287fd1558ae175a8420cc5c4f56fa4} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
template$<$typename Input\+Value\+Type$>$ \\
std::\+unique\+\_\+ptr$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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[{std::\+initializer\+\_\+list$<$ Input\+Value\+Type $>$}]{values}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



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

\doxylink{classgko_1_1batch_1_1matrix_1_1Dense_a1435a7379f4af08f142eb2a3155e5afc}{create(std::\+shared\+\_\+ptr$<$const Executor$>$,const batch\+\_\+dim$<$2$>$\&, array$<$value\+\_\+type$>$)} \Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_aab5c2438bd15c76b499b86de2ca4507a}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create@{create}}
\index{create@{create}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create()}{create()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_aab5c2438bd15c76b499b86de2ca4507a} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
std::\+unique\+\_\+ptr$<$ Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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~$>$\{\}}}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Creates an uninitialized \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{Dense} 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
\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_1Dense_a3c287fd1558ae175a8420cc5c4f56fa4}{create()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ab9a2a2cdc6319b4d4bcbdacdbac35fe4}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create\_const@{create\_const}}
\index{create\_const@{create\_const}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create\_const()}{create\_const()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ab9a2a2cdc6319b4d4bcbdacdbac35fe4} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
std::\+unique\+\_\+ptr$<$ const Dense $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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[{gko::\+detail::\+const\+\_\+array\+\_\+view$<$ Value\+Type $>$ \&\&}]{values}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



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


\begin{DoxyParams}{Parameters}
{\em exec} & the executor to create the matrix on \\
\hline
{\em size} & the dimensions of the matrix \\
\hline
{\em values} & the value array 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_1Dense_ab906eae08119b036f2ac5a26a56b16b8}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create\_const\_view\_for\_item@{create\_const\_view\_for\_item}}
\index{create\_const\_view\_for\_item@{create\_const\_view\_for\_item}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create\_const\_view\_for\_item()}{create\_const\_view\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ab906eae08119b036f2ac5a26a56b16b8} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
std::\+unique\+\_\+ptr$<$ const unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense$<$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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} object with the data from the batch item at the given index.    
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a22c9b493e93ca63a0f3dcb6000e6fff6}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!create\_view\_for\_item@{create\_view\_for\_item}}
\index{create\_view\_for\_item@{create\_view\_for\_item}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{create\_view\_for\_item()}{create\_view\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a22c9b493e93ca63a0f3dcb6000e6fff6} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
std::\+unique\+\_\+ptr$<$ unbatch\+\_\+type $>$ \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} type) of one item of the \doxylink{classgko_1_1batch_1_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense$<$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_1matrix_1_1Dense}{gko::\+matrix::\+\+Dense} object with the data from the batch item at the given index. 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_af89bd9c5040ed7dd79cfd112d853b2b1}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_const\_values@{get\_const\_values}}
\index{get\_const\_values@{get\_const\_values}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_values()}{get\_const\_values()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_af89bd9c5040ed7dd79cfd112d853b2b1} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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 multi-\/vector.    

\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_1Dense_afb7ed5a66d88dcd971128089422a3672}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_const\_values\_for\_item@{get\_const\_values\_for\_item}}
\index{get\_const\_values\_for\_item@{get\_const\_values\_for\_item}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_const\_values\_for\_item()}{get\_const\_values\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_afb7ed5a66d88dcd971128089422a3672} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
const value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a9a55a60161580b34da0acd6a9af1f278}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_cumulative\_offset@{get\_cumulative\_offset}}
\index{get\_cumulative\_offset@{get\_cumulative\_offset}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_cumulative\_offset()}{get\_cumulative\_offset()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a9a55a60161580b34da0acd6a9af1f278} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+get\+\_\+cumulative\+\_\+offset (\begin{DoxyParamCaption}\item[{\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}}}]{batch\+\_\+id}{}\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the cumulative storage size offset. 


\begin{DoxyParams}{Parameters}
{\em batch\+\_\+id} & the batch id\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the cumulative offset 
\end{DoxyReturn}


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

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a1711cd053116a336e16953af10fcf8c8}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_num\_elements\_per\_item@{get\_num\_elements\_per\_item}}
\index{get\_num\_elements\_per\_item@{get\_num\_elements\_per\_item}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_num\_elements\_per\_item()}{get\_num\_elements\_per\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a1711cd053116a336e16953af10fcf8c8} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ad8eb22005182873bb825f480d433a155}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_num\_stored\_elements@{get\_num\_stored\_elements}}
\index{get\_num\_stored\_elements@{get\_num\_stored\_elements}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_num\_stored\_elements()}{get\_num\_stored\_elements()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ad8eb22005182873bb825f480d433a155} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
\doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\+\_\+type}} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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_1Dense_a1711cd053116a336e16953af10fcf8c8}{get\+\_\+num\+\_\+elements\+\_\+per\+\_\+item()}}.

\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a6230225be6d912b9d8f72ade4a098c48}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_values@{get\_values}}
\index{get\_values@{get\_values}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_values()}{get\_values()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a6230225be6d912b9d8f72ade4a098c48} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+get\+\_\+values (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Returns a pointer to the array of values of the multi-\/vector. 

\begin{DoxyReturn}{Returns}
the pointer to the array of values 
\end{DoxyReturn}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_abe0a01ab85963a20386e6ca2c064b582}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!get\_values\_for\_item@{get\_values\_for\_item}}
\index{get\_values\_for\_item@{get\_values\_for\_item}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{get\_values\_for\_item()}{get\_values\_for\_item()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_abe0a01ab85963a20386e6ca2c064b582} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
value\+\_\+type \texorpdfstring{$\ast$}{*} \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_a964f12513ce49375e6e35a2d70bd5dd5}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!scale@{scale}}
\index{scale@{scale}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{scale()}{scale()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_a964f12513ce49375e6e35a2d70bd5dd5} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+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}
\Hypertarget{classgko_1_1batch_1_1matrix_1_1Dense_ad4434699a5858fb5fff0b478cca0c753}\index{gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}!scale\_add@{scale\_add}}
\index{scale\_add@{scale\_add}!gko::batch::matrix::Dense$<$ ValueType $>$@{gko::batch::matrix::Dense$<$ ValueType $>$}}
\doxysubsubsection{\texorpdfstring{scale\_add()}{scale\_add()}}
{\footnotesize\ttfamily \label{classgko_1_1batch_1_1matrix_1_1Dense_ad4434699a5858fb5fff0b478cca0c753} 
template$<$typename Value\+Type = default\+\_\+precision$>$ \\
void \doxymbox{\hyperlink{classgko_1_1batch_1_1matrix_1_1Dense}{gko::\+batch::\+matrix::\+\+Dense}}$<$ Value\+Type $>$::\+scale\+\_\+add (\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_1matrix_1_1Dense}{batch::\+matrix::\+\+Dense}}$<$ value\+\_\+type $>$ $>$}]{b}{}\end{DoxyParamCaption})}



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


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


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