\doxysection{isai.\+hpp}
\hypertarget{isai_8hpp_source}{}\label{isai_8hpp_source}\index{ginkgo/core/preconditioner/isai.hpp@{ginkgo/core/preconditioner/isai.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//\ SPDX-\/FileCopyrightText:\ 2017\ -\/\ 2025\ The\ Ginkgo\ authors}}
\DoxyCodeLine{00002\ \textcolor{comment}{//}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ SPDX-\/License-\/Identifier:\ BSD-\/3-\/Clause}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#ifndef\ GKO\_PUBLIC\_CORE\_PRECONDITIONER\_ISAI\_HPP\_}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ GKO\_PUBLIC\_CORE\_PRECONDITIONER\_ISAI\_HPP\_}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <memory>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/composition.hpp>}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/exception\_helpers.hpp>}}
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/executor.hpp>}}
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#include\ <ginkgo/core/base/lin\_op.hpp>}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#include\ <ginkgo/core/config/config.hpp>}}
\DoxyCodeLine{00016\ \textcolor{preprocessor}{\#include\ <ginkgo/core/config/registry.hpp>}}
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#include\ <ginkgo/core/matrix/csr.hpp>}}
\DoxyCodeLine{00018\ \textcolor{preprocessor}{\#include\ <ginkgo/core/matrix/dense.hpp>}}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ \textcolor{keyword}{namespace\ }\doxymbox{\hyperlink{namespacegko}{gko}}\ \{}
\DoxyCodeLine{00027\ \textcolor{keyword}{namespace\ }\doxymbox{\hyperlink{namespacegko_1_1preconditioner}{preconditioner}}\ \{}
\DoxyCodeLine{00028\ }
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{enum\ struct}\ \doxymbox{\hyperlink{namespacegko_1_1preconditioner_a918dfc2ae55135bbd6e1e01d0c6031ab}{isai\_type}}\ \{\ lower,\ upper,\ general,\ spd\ \};}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00078\ \textcolor{keyword}{template}\ <isai\_type\ IsaiType,\ \textcolor{keyword}{typename}\ ValueType,\ \textcolor{keyword}{typename}\ IndexType>}
\DoxyCodeLine{00079\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\ :\ \textcolor{keyword}{public}\ \doxymbox{\hyperlink{classgko_1_1EnableLinOp}{EnableLinOp}}<Isai<IsaiType,\ ValueType,\ IndexType>>,}
\DoxyCodeLine{00080\ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{public}\ \doxymbox{\hyperlink{classgko_1_1Transposable}{Transposable}}\ \{}
\DoxyCodeLine{00081\ \ \ \ \ \textcolor{keyword}{friend}\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1EnableLinOp}{EnableLinOp}}<\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}>;}
\DoxyCodeLine{00082\ \ \ \ \ \textcolor{keyword}{friend}\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1EnablePolymorphicObject}{EnablePolymorphicObject}}<\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}},\ \doxymbox{\hyperlink{classgko_1_1LinOp}{LinOp}}>;}
\DoxyCodeLine{00083\ \ \ \ \ \textcolor{keyword}{friend}\ \textcolor{keyword}{class\ }\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}<\doxymbox{\hyperlink{namespacegko_1_1preconditioner_a918dfc2ae55135bbd6e1e01d0c6031ab}{isai\_type}}::general,\ ValueType,\ IndexType>;}
\DoxyCodeLine{00084\ \ \ \ \ friend\ class\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}<isai\_type::lower,\ ValueType,\ IndexType>;}
\DoxyCodeLine{00085\ \ \ \ \ friend\ class\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}<isai\_type::upper,\ ValueType,\ IndexType>;}
\DoxyCodeLine{00086\ \ \ \ \ friend\ class\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}<isai\_type::spd,\ ValueType,\ IndexType>;}
\DoxyCodeLine{00087\ \ \ \ \ GKO\_ASSERT\_SUPPORTED\_VALUE\_AND\_INDEX\_TYPE;}
\DoxyCodeLine{00088\ }
\DoxyCodeLine{00089\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00090\ \ \ \ \ using\ value\_type\ =\ ValueType;}
\DoxyCodeLine{00091\ \ \ \ \ using\ index\_type\ =\ IndexType;}
\DoxyCodeLine{00092\ \ \ \ \ using\ transposed\_type\ =}
\DoxyCodeLine{00093\ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}<IsaiType\ ==\ isai\_type::general\ ?\ isai\_type::general}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ \ \ \ \ \ :\ IsaiType\ ==\ isai\_type::spd\ \ \ ?\ isai\_type::spd}
\DoxyCodeLine{00095\ \ \ \ \ \ \ \ \ \ \ \ \ \ :\ IsaiType\ ==\ isai\_type::lower\ ?\ isai\_type::upper}
\DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ :\ isai\_type::lower,}
\DoxyCodeLine{00097\ \ \ \ \ \ \ \ \ \ \ \ \ \ ValueType,\ IndexType>;}
\DoxyCodeLine{00098\ \ \ \ \ using\ Comp\ =\ \doxymbox{\hyperlink{classgko_1_1Composition}{Composition}}<ValueType>;}
\DoxyCodeLine{00099\ \ \ \ \ using\ Csr\ =\ \doxymbox{\hyperlink{classgko_1_1matrix_1_1Csr}{matrix::Csr}}<ValueType,\ IndexType>;}
\DoxyCodeLine{00100\ \ \ \ \ using\ Dense\ =\ \doxymbox{\hyperlink{classgko_1_1matrix_1_1Dense}{matrix::Dense}}<ValueType>;}
\DoxyCodeLine{00101\ \ \ \ \ static\ constexpr\ \doxymbox{\hyperlink{namespacegko_1_1preconditioner_a918dfc2ae55135bbd6e1e01d0c6031ab}{isai\_type}}\ type\{IsaiType\};}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00110\ \ \ \ \ std::shared\_ptr<\textcolor{keyword}{const}\ \textcolor{keyword}{typename}\ std::conditional<IsaiType\ ==\ isai\_type::spd,}
\DoxyCodeLine{00111\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Comp,\ Csr>::type>}
\DoxyCodeLine{00112\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_ae50f779e814c9aa6683c5c1133ceb694}{get\_approximate\_inverse}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00113\ \textcolor{keyword}{\ \ \ \ }\{}
\DoxyCodeLine{00114\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \doxymbox{\hyperlink{namespacegko_ae3e355a655feea026a7c46814d37a9c9}{as}}<\textcolor{keyword}{typename}\ std::conditional<IsaiType\ ==\ isai\_type::spd,\ Comp,}
\DoxyCodeLine{00115\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Csr>::type>(approximate\_inverse\_);}
\DoxyCodeLine{00116\ \ \ \ \ \}}
\DoxyCodeLine{00117\ }
\DoxyCodeLine{00123\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_af91a12fb6321be9ad8ecbb866b04f87b}{operator=}}(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\ other);}
\DoxyCodeLine{00124\ }
\DoxyCodeLine{00131\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a785324ad638bad52e56580263d291630}{operator=}}(\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\&\ other);}
\DoxyCodeLine{00132\ }
\DoxyCodeLine{00137\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}(\textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\ other);}
\DoxyCodeLine{00138\ }
\DoxyCodeLine{00144\ \ \ \ \ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a91b1b4324e40bf472573e770bc1b86bc}{Isai}}(\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}\&\&\ other);}
\DoxyCodeLine{00145\ }
\DoxyCodeLine{00146\ \ \ \ \ \doxymbox{\hyperlink{group__LinOp_ga1fc8e9d8be0c9ad2d72bc1ddfc6d8358}{GKO\_CREATE\_FACTORY\_PARAMETERS}}(parameters,\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_1_1Factory}{Factory}})}
\DoxyCodeLine{00147\ \ \ \ \ \{}
\DoxyCodeLine{00156\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ \doxymbox{\hyperlink{group__LinOp_ga49d4c09c39f06b22bebbbfd1d8bfe450}{GKO\_FACTORY\_PARAMETER\_SCALAR}}(\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a0f94fd144a00a6294ac4e2b430b1d5d1}{skip\_sorting}},\ \textcolor{keyword}{false});}
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00166\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ \doxymbox{\hyperlink{group__LinOp_ga49d4c09c39f06b22bebbbfd1d8bfe450}{GKO\_FACTORY\_PARAMETER\_SCALAR}}(\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a24629edfcca9106e2bb310bdbca2c28c}{sparsity\_power}},\ 1);}
\DoxyCodeLine{00167\ }
\DoxyCodeLine{00179\ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{namespacegko_a9579c98b1d85bf4ad02d7cb5b96fc771}{size\_type}}\ \doxymbox{\hyperlink{group__LinOp_ga49d4c09c39f06b22bebbbfd1d8bfe450}{GKO\_FACTORY\_PARAMETER\_SCALAR}}(\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a482c697381c36d4e5766ac52983bd1fb}{excess\_limit}},\ 0u);}
\DoxyCodeLine{00180\ }
\DoxyCodeLine{00187\ \ \ \ \ \ \ \ \ std::shared\_ptr<const\ LinOpFactory>\ GKO\_DEFERRED\_FACTORY\_PARAMETER(}
\DoxyCodeLine{00188\ \ \ \ \ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a1a739ecb3368e58fe335fca16af1b0a4}{excess\_solver\_factory}});}
\DoxyCodeLine{00189\ }
\DoxyCodeLine{00190\ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\_complex<value\_type>}}\ \doxymbox{\hyperlink{group__LinOp_ga49d4c09c39f06b22bebbbfd1d8bfe450}{GKO\_FACTORY\_PARAMETER\_SCALAR}}(}
\DoxyCodeLine{00191\ \ \ \ \ \ \ \ \ \ \ \ \ excess\_solver\_reduction,}
\DoxyCodeLine{00192\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{static\_cast<}\doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\_complex<value\_type>}}\textcolor{keyword}{>}(1e-\/6));}
\DoxyCodeLine{00193\ \ \ \ \ \};}
\DoxyCodeLine{00194\ }
\DoxyCodeLine{00195\ \ \ \ \ \doxymbox{\hyperlink{group__LinOp_ga8e0af90ec2414b768266f77cedffc309}{GKO\_ENABLE\_LIN\_OP\_FACTORY}}(\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}},\ parameters,\ Factory);}
\DoxyCodeLine{00196\ \ \ \ \ \doxymbox{\hyperlink{group__LinOp_ga521f65604cc4cf427dcb2ecfa49b757c}{GKO\_ENABLE\_BUILD\_METHOD}}(Factory);}
\DoxyCodeLine{00197\ }
\DoxyCodeLine{00211\ \ \ \ \ \textcolor{keyword}{static}\ parameters\_type\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a56afe4405af9d8046346f3280b12c54c}{parse}}(}
\DoxyCodeLine{00212\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1config_1_1pnode}{config::pnode}}\&\ config,\ \textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1config_1_1registry}{config::registry}}\&\ context,}
\DoxyCodeLine{00213\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \doxymbox{\hyperlink{classgko_1_1config_1_1type__descriptor}{config::type\_descriptor}}\&\ td\_for\_child\ =}
\DoxyCodeLine{00214\ \ \ \ \ \ \ \ \ \ \ \ \ config::make\_type\_descriptor<ValueType,\ IndexType>());}
\DoxyCodeLine{00215\ }
\DoxyCodeLine{00216\ \ \ \ \ std::unique\_ptr<LinOp>\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a3e26156714162848e3660bcfbb5b81e9}{transpose}}()\ \textcolor{keyword}{const\ override};}
\DoxyCodeLine{00217\ }
\DoxyCodeLine{00218\ \ \ \ \ std::unique\_ptr<LinOp>\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_aa58bee37b0fea967d9ea1b393ff016ec}{conj\_transpose}}()\ \textcolor{keyword}{const\ override};}
\DoxyCodeLine{00219\ }
\DoxyCodeLine{00220\ \textcolor{keyword}{protected}:}
\DoxyCodeLine{00221\ \ \ \ \ \textcolor{keyword}{explicit}\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}(std::shared\_ptr<const\ Executor>\ exec)}
\DoxyCodeLine{00222\ \ \ \ \ \ \ \ \ :\ \doxymbox{\hyperlink{classgko_1_1EnableLinOp}{EnableLinOp}}<\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}>(\doxymbox{\hyperlink{namespacestd}{std}}::move(exec))}
\DoxyCodeLine{00223\ \ \ \ \ \{\}}
\DoxyCodeLine{00224\ }
\DoxyCodeLine{00231\ \ \ \ \ \textcolor{keyword}{explicit}\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai_a186ec25bbcd1d1a0c3fee46c820cd992}{Isai}}(\textcolor{keyword}{const}\ Factory*\ factory,}
\DoxyCodeLine{00232\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ std::shared\_ptr<const\ LinOp>\ system\_matrix)}
\DoxyCodeLine{00233\ \ \ \ \ \ \ \ \ :\ \doxymbox{\hyperlink{classgko_1_1EnableLinOp}{EnableLinOp}}<\doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai}{Isai}}>(factory-\/>get\_executor(),\ system\_matrix-\/>get\_size()),}
\DoxyCodeLine{00234\ \ \ \ \ \ \ \ \ \ \ parameters\_\{factory-\/>get\_parameters()\}}
\DoxyCodeLine{00235\ \ \ \ \ \{}
\DoxyCodeLine{00236\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{auto}\ skip\_sorting\ =\ parameters\_.\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a0f94fd144a00a6294ac4e2b430b1d5d1}{skip\_sorting}};}
\DoxyCodeLine{00237\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{auto}\ power\ =\ parameters\_.\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a24629edfcca9106e2bb310bdbca2c28c}{sparsity\_power}};}
\DoxyCodeLine{00238\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{auto}\ excess\_limit\ =\ parameters\_.\doxymbox{\hyperlink{structgko_1_1preconditioner_1_1Isai_1_1parameters__type_a482c697381c36d4e5766ac52983bd1fb}{excess\_limit}};}
\DoxyCodeLine{00239\ \ \ \ \ \ \ \ \ generate\_inverse(system\_matrix,\ skip\_sorting,\ power,\ excess\_limit,}
\DoxyCodeLine{00240\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{static\_cast<}\doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\_complex<value\_type>}}\textcolor{keyword}{>}(}
\DoxyCodeLine{00241\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ parameters\_.excess\_solver\_reduction));}
\DoxyCodeLine{00242\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (IsaiType\ ==\ isai\_type::spd)\ \{}
\DoxyCodeLine{00243\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{auto}\ inv\ =\ \doxymbox{\hyperlink{namespacegko_ae99fdd8bfa5ac694adcb7297d432967e}{share}}(\doxymbox{\hyperlink{namespacegko_ae3e355a655feea026a7c46814d37a9c9}{as<Csr>}}(approximate\_inverse\_));}
\DoxyCodeLine{00244\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{auto}\ inv\_transp\ =\ \doxymbox{\hyperlink{namespacegko_ae99fdd8bfa5ac694adcb7297d432967e}{share}}(inv-\/>conj\_transpose());}
\DoxyCodeLine{00245\ \ \ \ \ \ \ \ \ \ \ \ \ approximate\_inverse\_\ =}
\DoxyCodeLine{00246\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Composition<ValueType>::create(inv\_transp,\ inv);}
\DoxyCodeLine{00247\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00248\ \ \ \ \ \}}
\DoxyCodeLine{00249\ }
\DoxyCodeLine{00250\ \ \ \ \ \textcolor{keywordtype}{void}\ apply\_impl(\textcolor{keyword}{const}\ LinOp*\ b,\ LinOp*\ x)\textcolor{keyword}{\ const\ override}}
\DoxyCodeLine{00251\ \textcolor{keyword}{\ \ \ \ }\{}
\DoxyCodeLine{00252\ \ \ \ \ \ \ \ \ approximate\_inverse\_-\/>apply(b,\ x);}
\DoxyCodeLine{00253\ \ \ \ \ \}}
\DoxyCodeLine{00254\ }
\DoxyCodeLine{00255\ \ \ \ \ \textcolor{keywordtype}{void}\ apply\_impl(\textcolor{keyword}{const}\ LinOp*\ alpha,\ \textcolor{keyword}{const}\ LinOp*\ b,\ \textcolor{keyword}{const}\ LinOp*\ beta,}
\DoxyCodeLine{00256\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ LinOp*\ x)\textcolor{keyword}{\ const\ override}}
\DoxyCodeLine{00257\ \textcolor{keyword}{\ \ \ \ }\{}
\DoxyCodeLine{00258\ \ \ \ \ \ \ \ \ approximate\_inverse\_-\/>apply(alpha,\ b,\ beta,\ x);}
\DoxyCodeLine{00259\ \ \ \ \ \}}
\DoxyCodeLine{00260\ }
\DoxyCodeLine{00261\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00272\ \ \ \ \ \textcolor{keywordtype}{void}\ generate\_inverse(std::shared\_ptr<const\ LinOp>\ to\_invert,}
\DoxyCodeLine{00273\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ skip\_sorting,\ \textcolor{keywordtype}{int}\ power,\ index\_type\ excess\_limit,}
\DoxyCodeLine{00274\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{namespacegko_a107302a750bfa82a2107c77293f791c9}{remove\_complex<value\_type>}}\ excess\_solver\_reduction);}
\DoxyCodeLine{00275\ }
\DoxyCodeLine{00276\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00277\ \ \ \ \ std::shared\_ptr<LinOp>\ approximate\_inverse\_;}
\DoxyCodeLine{00278\ \};}
\DoxyCodeLine{00279\ }
\DoxyCodeLine{00280\ }
\DoxyCodeLine{00281\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ ValueType\ =\ default\_precision,\ \textcolor{keyword}{typename}\ IndexType\ =\ \textcolor{keywordtype}{int}32>}
\DoxyCodeLine{00282\ \textcolor{keyword}{using\ }LowerIsai\ =\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai}{Isai<isai\_type::lower,\ ValueType,\ IndexType>}};}
\DoxyCodeLine{00283\ }
\DoxyCodeLine{00284\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ ValueType\ =\ default\_precision,\ \textcolor{keyword}{typename}\ IndexType\ =\ \textcolor{keywordtype}{int}32>}
\DoxyCodeLine{00285\ \textcolor{keyword}{using\ }UpperIsai\ =\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai}{Isai<isai\_type::upper,\ ValueType,\ IndexType>}};}
\DoxyCodeLine{00286\ }
\DoxyCodeLine{00287\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ ValueType\ =\ default\_precision,\ \textcolor{keyword}{typename}\ IndexType\ =\ \textcolor{keywordtype}{int}32>}
\DoxyCodeLine{00288\ \textcolor{keyword}{using\ }GeneralIsai\ =\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai}{Isai<isai\_type::general,\ ValueType,\ IndexType>}};}
\DoxyCodeLine{00289\ }
\DoxyCodeLine{00290\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ ValueType\ =\ default\_precision,\ \textcolor{keyword}{typename}\ IndexType\ =\ \textcolor{keywordtype}{int}32>}
\DoxyCodeLine{00291\ \textcolor{keyword}{using\ }SpdIsai\ =\ \doxymbox{\hyperlink{classgko_1_1preconditioner_1_1Isai}{Isai<isai\_type::spd,\ ValueType,\ IndexType>}};}
\DoxyCodeLine{00292\ }
\DoxyCodeLine{00293\ }
\DoxyCodeLine{00294\ \}\ \ \textcolor{comment}{//\ namespace\ preconditioner}}
\DoxyCodeLine{00295\ \}\ \ \textcolor{comment}{//\ namespace\ gko}}
\DoxyCodeLine{00296\ }
\DoxyCodeLine{00297\ }
\DoxyCodeLine{00298\ \textcolor{preprocessor}{\#endif\ \ }\textcolor{comment}{//\ GKO\_PUBLIC\_CORE\_PRECONDITIONER\_ISAI\_HPP\_}}

\end{DoxyCode}
