Computes a Approximate Minimum Degree (AMD) reordering of an input matrix.
More...
#include <ginkgo/core/reorder/amd.hpp>
|
|
using | index_type = IndexType |
|
using | permutation_type = matrix::Permutation<index_type> |
|
using | result_type |
|
| const parameters_type & | get_parameters () |
| | Returns the parameters used to construct the factory.
|
| std::unique_ptr< permutation_type > | generate (std::shared_ptr< const LinOp > system_matrix) const |
| | Creates a new product from the given components.
|
|
void | convert_to (result_type *result) const override |
|
void | move_to (result_type *result) override |
|
|
static parameters_type | build () |
| | Creates a new parameter_type to set up the factory.
|
|
|
class | EnablePolymorphicObject< Amd< IndexType >, LinOpFactory > |
|
class | enable_parameters_type< parameters_type, Amd< IndexType > > |
template<typename IndexType = int32>
class gko::experimental::reorder::Amd< IndexType >
Computes a Approximate Minimum Degree (AMD) reordering of an input matrix.
- Template Parameters
-
| IndexType | the type used to store sparsity pattern indices of the system matrix |
◆ generate()
template<typename IndexType = int32>
Creates a new product from the given components.
The method will create an ComponentsType object from the arguments of this method, and pass it to the generate_impl() function which will create a new AbstractProductType.
- Template Parameters
-
| Args | types of arguments passed to the constructor of ComponentsType |
- Parameters
-
| args | arguments passed to the constructor of ComponentsType |
- Returns
- an instance of AbstractProductType
- Note
- This function overrides the default LinOpFactory::generate to return a Permutation instead of a generic LinOp, which would need to be cast to Permutation again to access its indices. It is only necessary because smart pointers aren't covariant.
◆ get_parameters()
template<typename IndexType = int32>
Returns the parameters used to construct the factory.
- Returns
- the parameters used to construct the factory.
The documentation for this class was generated from the following file: