numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
tune_coarse_grid_selection.h File Reference

Definition of tune_coarse_grid_selection function. More...

#include <algorithm>
#include <optional>
#include <unordered_set>
#include "num_collect/base/index_type.h"
#include "num_collect/linear/impl/amg/node_connection_list.h"
#include "num_collect/linear/impl/amg/node_layer.h"
#include "num_collect/util/assert.h"
#include "num_collect/util/vector.h"
+ Include dependency graph for tune_coarse_grid_selection.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::linear
 Namespace of solvers of linear equations.
 
namespace  num_collect::linear::impl
 Namespace of internal implementations.
 
namespace  num_collect::linear::impl::amg
 Namespace of internal implementations of algebraic multigrid method [24].
 

Functions

template<typename StorageIndex >
auto num_collect::linear::impl::amg::find_node_unsatisfying_interpolation_condition (const node_connection_list< StorageIndex > &connections, const std::unordered_set< StorageIndex > &neighbors_in_coarse_grid, const std::unordered_set< StorageIndex > &neighbors_in_fine_grid) -> std::optional< StorageIndex >
 Find a neighboring node unsatisfying the condition of interpolation in [24] for a node.
 
template<typename StorageIndex >
void num_collect::linear::impl::amg::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 [24].
 
template<typename StorageIndex >
void num_collect::linear::impl::amg::tune_coarse_grid_selection_for_one_node (const node_connection_list< StorageIndex > &connections, util::vector< node_layer > &node_classification, index_type tested_node_index)
 Tune a node in a coarse grid to satisfy the condition for interpolation specified in [24].
 

Detailed Description

Definition of tune_coarse_grid_selection function.

Definition in file tune_coarse_grid_selection.h.