36#include <ginkgo/core/base/composition.hpp>
37#include <ginkgo/core/base/lin_op.hpp>
38#include <ginkgo/core/base/polymorphic_object.hpp>
39#include <ginkgo/core/factorization/factorization.hpp>
40#include <ginkgo/core/matrix/csr.hpp>
41#include <ginkgo/core/matrix/sparsity_csr.hpp>
45namespace experimental {
46namespace factorization {
59template <
typename ValueType,
typename IndexType>
69 using value_type = ValueType;
70 using index_type = IndexType;
83 std::shared_ptr<const sparsity_pattern_type>
114 std::shared_ptr<const LinOp> system_matrix)
const;
120 explicit Cholesky(std::shared_ptr<const Executor> exec,
121 const parameters_type&
params = {});
123 std::unique_ptr<LinOp> generate_impl(
124 std::shared_ptr<const LinOp> system_matrix)
const override;
127 parameters_type parameters_;
This mixin is used to enable a default PolymorphicObject::copy_from() implementation for objects that...
Definition polymorphic_object.hpp:752
This mixin inherits from (a subclass of) PolymorphicObject and provides a base implementation of a ne...
Definition polymorphic_object.hpp:691
A LinOpFactory represents a higher order mapping which transforms one linear operator into another.
Definition lin_op.hpp:414
The enable_parameters_type mixin is used to create a base implementation of the factory parameters st...
Definition abstract_factory.hpp:239
Computes a Cholesky factorization of a symmetric, positive-definite sparse matrix.
Definition cholesky.hpp:63
static parameters_type build()
Creates a new parameter_type to set up the factory.
Definition cholesky.hpp:117
const parameters_type & get_parameters()
Returns the parameters used to construct the factory.
Definition cholesky.hpp:104
std::unique_ptr< factorization_type > generate(std::shared_ptr< const LinOp > system_matrix) const
Represents a generic factorization consisting of two triangular factors (upper and lower) and an opti...
Definition factorization.hpp:104
CSR is a matrix format which stores only the nonzero coefficients by compressing each row of the matr...
Definition csr.hpp:146
SparsityCsr is a matrix format which stores only the sparsity pattern of a sparse matrix by compressi...
Definition sparsity_csr.hpp:87
#define GKO_FACTORY_PARAMETER_SCALAR(_name, _default)
Creates a scalar factory parameter in the factory parameters structure.
Definition abstract_factory.hpp:473
The Ginkgo namespace.
Definition abstract_factory.hpp:48
constexpr T one()
Returns the multiplicative identity for T.
Definition math.hpp:803
Definition cholesky.hpp:76
std::shared_ptr< const sparsity_pattern_type > symbolic_factorization
The combined sparsity pattern L + L^H of the factors L and L^H.
Definition cholesky.hpp:84
bool skip_sorting
The system_matrix, which will be given to this factory, must be sorted (first by row,...
Definition cholesky.hpp:96