5#ifndef GKO_PUBLIC_CORE_SOLVER_DIRECT_HPP_
6#define GKO_PUBLIC_CORE_SOLVER_DIRECT_HPP_
9#include <ginkgo/core/base/lin_op.hpp>
10#include <ginkgo/core/config/config.hpp>
11#include <ginkgo/core/config/registry.hpp>
12#include <ginkgo/core/factorization/factorization.hpp>
13#include <ginkgo/core/solver/solver_base.hpp>
14#include <ginkgo/core/solver/triangular.hpp>
18namespace experimental {
34template <
typename ValueType,
typename IndexType>
37 Direct<ValueType, IndexType>,
38 factorization::Factorization<ValueType, IndexType>>,
43 using value_type = ValueType;
44 using index_type = IndexType;
66 std::shared_ptr<const LinOpFactory> GKO_DEFERRED_FACTORY_PARAMETER(
88 config::make_type_descriptor<ValueType, IndexType>());
101 explicit Direct(std::shared_ptr<const Executor> exec);
103 Direct(
const Factory* factory, std::shared_ptr<const LinOp> system_matrix);
105 void apply_impl(
const LinOp* b,
LinOp* x)
const override;
108 LinOp* x)
const override;
114 std::unique_ptr<lower_type> lower_solver_;
115 std::unique_ptr<upper_type> upper_solver_;
126template <
typename ValueType,
typename IndexType>
127struct workspace_traits<
131 static int num_vectors(
const Solver&);
133 static int num_arrays(
const Solver&);
135 static std::vector<std::string> op_names(
const Solver&);
137 static std::vector<std::string> array_names(
const Solver&);
139 static std::vector<int> scalars(
const Solver&);
141 static std::vector<int> vectors(
const Solver&);
144 constexpr static int intermediate = 0;
Definition lin_op.hpp:878
Definition polymorphic_object.hpp:668
Definition lin_op.hpp:117
Definition lin_op.hpp:433
Definition property_tree.hpp:28
Definition registry.hpp:167
Definition type_descriptor.hpp:39
Definition abstract_factory.hpp:211
Definition factorization.hpp:78
std::unique_ptr< LinOp > conj_transpose() const override
std::unique_ptr< LinOp > transpose() const override
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 >())
Definition solver_base.hpp:539
Definition triangular.hpp:67
Definition triangular.hpp:234
#define GKO_FACTORY_PARAMETER_SCALAR(_name, _default)
Definition abstract_factory.hpp:445
#define GKO_ENABLE_BUILD_METHOD(_factory_name)
Definition abstract_factory.hpp:394
#define GKO_ENABLE_LIN_OP_FACTORY(_lin_op, _parameters_name, _factory_name)
Definition lin_op.hpp:1016
The Ginkgo namespace.
Definition abstract_factory.hpp:20
std::size_t size_type
Definition types.hpp:89
std::shared_ptr< const LinOpFactory > factorization
Definition direct.hpp:67
gko::size_type num_rhs
Definition direct.hpp:63