41template <base::concepts::sparse_matrix Matrix>
43 const Matrix& matrix,
typename Matrix::Scalar strong_coeff_rate_threshold)
45 const auto connections =
47 const auto transposed_connections = connections.transpose();
48 auto node_classification =
51 connections, transposed_connections, node_classification);
52 return node_classification;
Definition of build_first_coarse_grid_candidate function.
Class of vectors wrapping std::vector class to use singed integers as indices.
Definition of compute_strong_connection_list function.
Namespace of internal implementations of algebraic multigrid method ruge1987.
void tune_coarse_grid_selection(const node_connection_list< StorageIndex > &connections, const node_connection_list< StorageIndex > &transposed_connections, util::vector< node_layer > &node_classification)
Tune a coarse grid to satisfy the condition for interpolation specified in ruge1987.
auto create_coarse_grid(const Matrix &matrix, typename Matrix::Scalar strong_coeff_rate_threshold) -> util::vector< node_layer >
Create a coarse grid from a sparse matrix using an algorithm in ruge1987.
auto build_first_coarse_grid_candidate(const node_connection_list< StorageIndex > &connections, const node_connection_list< StorageIndex > &transposed_connections) -> util::vector< node_layer >
Build the first candidate of a coarse grid.
auto compute_strong_connection_list(const Matrix &matrix, typename Matrix::Scalar strong_coeff_rate_threshold) -> node_connection_list< typename Matrix::StorageIndex >
Compute a list of strong connections in a matrix ruge1987.
Definition of node_class enumeration.
Definition of sparse_matrix concept.
Definition of tune_coarse_grid_selection function.
Definition of vector class.