numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class to perform Cuthill-McKee ordering method [7], [16]. More...
#include <num_collect/linear/cuthill_mckee_ordering.h>
Public Types | |
using | permutation_type |
Type of permutations. | |
using | PermutationType = permutation_type |
Type of permutations (for Eigen library). | |
using | storage_index_type = StorageIndex |
Type of indices in storages of indices. | |
Public Member Functions | |
cuthill_mckee_ordering ()=default | |
Constructor. | |
template<typename MatrixType , unsigned int Mode> | |
void | operator() (const Eigen::SparseSelfAdjointView< MatrixType, Mode > &matrix, permutation_type &permutation) |
Create a permutation matrix from SparseSelfAdjointView object. | |
template<base::concepts::sparse_matrix MatrixType> | |
void | operator() (const MatrixType &matrix, permutation_type &permutation) |
Create a permutation matrix. | |
Class to perform Cuthill-McKee ordering method [7], [16].
Definition at line 248 of file cuthill_mckee_ordering.h.
using num_collect::linear::cuthill_mckee_ordering< StorageIndex >::permutation_type |
Type of permutations.
Definition at line 254 of file cuthill_mckee_ordering.h.
using num_collect::linear::cuthill_mckee_ordering< StorageIndex >::PermutationType = permutation_type |
Type of permutations (for Eigen library).
Definition at line 258 of file cuthill_mckee_ordering.h.
using num_collect::linear::cuthill_mckee_ordering< StorageIndex >::storage_index_type = StorageIndex |
Type of indices in storages of indices.
Definition at line 251 of file cuthill_mckee_ordering.h.
|
inline |
Create a permutation matrix from SparseSelfAdjointView object.
MatrixType | Type of the input matrix. |
Mode | Mode of the input matrix. |
[in] | matrix | Input matrix. |
[in] | permutation | Permutation matrix. |
Definition at line 285 of file cuthill_mckee_ordering.h.
|
inline |
Create a permutation matrix.
MatrixType | Type of the input matrix. |
[in] | matrix | Input matrix. |
[out] | permutation | Permutation matrix. |
Definition at line 271 of file cuthill_mckee_ordering.h.