37template <
typename StorageIndex =
int>
110 -> std::span<const storage_index_type> {
111 return std::span<const storage_index_type>(
130 const auto num_nodes_cached =
137 ++begin_indices[index + 1];
140 begin_indices[i + 1] += begin_indices[i];
148 auto& index = next_index[j];
150 node_indices[index] = i;
156 std::move(node_indices), std::move(begin_indices));
Definition of assertion macros.
#define NUM_COLLECT_DEBUG_ASSERT(CONDITION)
Macro to check whether a condition is satisfied in debug build only.
Class of lists of connected nodes per node.
node_connection_list(util::vector< storage_index_type > node_indices, util::vector< storage_index_type > begin_indices)
Constructor.
void finish_current_node()
Finish adding connected nodes to the current node and start the next node.
util::vector< storage_index_type > node_indices_
Indices of connected nodes.
void initialize()
Initialize this list.
auto num_nodes() const -> index_type
Get the number of nodes.
StorageIndex storage_index_type
Type of indices in storages.
auto transpose() const -> node_connection_list< storage_index_type >
Make a transposed list.
node_connection_list()
Constructor.
auto connected_nodes_to(index_type node_index) const -> std::span< const storage_index_type >
Get the list of indices of connected nodes to the node with the given index.
void push_back(storage_index_type node_index)
Add a connected node to the current node.
util::vector< storage_index_type > begin_indices_
List of indices of beginning of the list of connected nodes per node.
Class of vectors wrapping std::vector class to use singed integers as indices.
auto size() const -> index_type
Get the size of this vector.
auto data() noexcept -> pointer
Get the pointer to the first element.
void push_back(const value_type &value)
Add an element.
void clear()
Remove the all elements in this vector.
auto back() -> reference
Access to the final element.
Definition of index_type type.
std::ptrdiff_t index_type
Type of indices in this library.
Namespace of internal implementations of algebraic multigrid method ruge1987.
Definition of vector class.