8#include <ginkgo/core/base/composition.hpp>
9#include <ginkgo/core/base/lin_op.hpp>
10#include <ginkgo/core/base/polymorphic_object.hpp>
11#include <ginkgo/core/config/config.hpp>
12#include <ginkgo/core/config/registry.hpp>
13#include <ginkgo/core/factorization/factorization.hpp>
14#include <ginkgo/core/matrix/csr.hpp>
15#include <ginkgo/core/matrix/sparsity_csr.hpp>
19namespace experimental {
20namespace factorization {
23enum class symbolic_type {
52template <
typename ValueType,
typename IndexType>
61 using value_type = ValueType;
62 using index_type = IndexType;
77 std::shared_ptr<const sparsity_pattern_type>
88 symbolic_type::general);
123 std::shared_ptr<const LinOp> system_matrix)
const;
144 config::make_type_descriptor<ValueType, IndexType>());
147 explicit Lu(std::shared_ptr<const Executor> exec,
150 std::unique_ptr<LinOp> generate_impl(
151 std::shared_ptr<const LinOp> system_matrix)
const override;
154 parameters_type parameters_;
This mixin is used to enable a default PolymorphicObject::copy_from() implementation for objects that...
Definition polymorphic_object.hpp:724
This mixin inherits from (a subclass of) PolymorphicObject and provides a base implementation of a ne...
Definition polymorphic_object.hpp:663
A LinOpFactory represents a higher order mapping which transforms one linear operator into another.
Definition lin_op.hpp:386
pnode describes a tree of properties.
Definition property_tree.hpp:28
This class stores additional context for creating Ginkgo objects from configuration files.
Definition registry.hpp:168
This class describes the value and index types to be used when building a Ginkgo type from a configur...
Definition type_descriptor.hpp:37
The enable_parameters_type mixin is used to create a base implementation of the factory parameters st...
Definition abstract_factory.hpp:211
Represents a generic factorization consisting of two triangular factors (upper and lower) and an opti...
Definition factorization.hpp:76
Computes an LU factorization of a sparse matrix.
Definition lu.hpp:55
std::unique_ptr< factorization_type > generate(std::shared_ptr< const LinOp > system_matrix) const
const parameters_type & get_parameters()
Returns the parameters used to construct the factory.
Definition lu.hpp:108
static parameters_type build()
Creates a new parameter_type to set up the factory.
Definition lu.hpp:126
const parameters_type & get_parameters() const
Returns the parameters used to construct the factory.
Definition lu.hpp:113
static parameters_type parse(const config::pnode &config, const config::registry &context, const config::type_descriptor &td_for_child=config::make_type_descriptor< ValueType, IndexType >())
Create the parameters from the property_tree.
CSR is a matrix format which stores only the nonzero coefficients by compressing each row of the matr...
Definition sparsity_csr.hpp:22
SparsityCsr is a matrix format which stores only the sparsity pattern of a sparse matrix by compressi...
Definition sparsity_csr.hpp:57
#define GKO_FACTORY_PARAMETER_SCALAR(_name, _default)
Creates a scalar factory parameter in the factory parameters structure.
Definition abstract_factory.hpp:445
The Ginkgo namespace.
Definition abstract_factory.hpp:20
bool skip_sorting
The system_matrix, which will be given to this factory, must be sorted (first by row,...
Definition lu.hpp:100
std::shared_ptr< const sparsity_pattern_type > symbolic_factorization
The combined sparsity pattern L + U of the factors L and U.
Definition lu.hpp:78
symbolic_type symbolic_algorithm
If the symbolic factorization of the matrix is not provided to the factory, this parameter controls w...
Definition lu.hpp:88