 |
Ginkgo
Generated from pipelines/2837190956 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
5 #ifndef GKO_PUBLIC_CORE_REORDER_AMD_HPP_
6 #define GKO_PUBLIC_CORE_REORDER_AMD_HPP_
11 #include <ginkgo/core/base/abstract_factory.hpp>
12 #include <ginkgo/core/base/lin_op.hpp>
13 #include <ginkgo/core/base/polymorphic_object.hpp>
14 #include <ginkgo/core/base/types.hpp>
15 #include <ginkgo/core/matrix/permutation.hpp>
19 namespace experimental {
46 template <
typename IndexType =
int32>
52 using index_type = IndexType;
88 std::unique_ptr<permutation_type>
generate(
89 std::shared_ptr<const LinOp> system_matrix)
const;
95 explicit Amd(std::shared_ptr<const Executor> exec,
96 const parameters_type& params = {});
98 std::unique_ptr<LinOp> generate_impl(
99 std::shared_ptr<const LinOp> system_matrix)
const override;
101 parameters_type parameters_;
110 #endif // GKO_PUBLIC_CORE_REORDER_AMD_HPP_
Computes an Approximate Minimum Degree (AMD) reordering of an input matrix.
Definition: amd.hpp:47
Permutation is a matrix format that represents a permutation matrix, i.e.
Definition: permutation.hpp:110
#define GKO_FACTORY_PARAMETER_SCALAR(_name, _default)
Creates a scalar factory parameter in the factory parameters structure.
Definition: abstract_factory.hpp:469
static parameters_type build()
Creates a new parameter_type to set up the factory.
Definition: amd.hpp:92
The Ginkgo namespace.
Definition: abstract_factory.hpp:19
bool skip_sorting
If set to false, sorts the input matrix before computing the AMD reordering.
Definition: amd.hpp:68
const parameters_type & get_parameters()
Returns the parameters used to construct the factory.
Definition: amd.hpp:76
std::unique_ptr< permutation_type > generate(std::shared_ptr< const LinOp > system_matrix) const
bool skip_symmetrize
If set to false, computes the AMD reordering on A + A^T, otherwise assumes that A is symmetric and us...
Definition: amd.hpp:61
A LinOpFactory represents a higher order mapping which transforms one linear operator into another.
Definition: lin_op.hpp:343
The enable_parameters_type mixin is used to create a base implementation of the factory parameters st...
Definition: abstract_factory.hpp:235