MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::sparse::ordering::detail::nd_weights Struct Reference

Part weights of a labelling. More...

#include <multilevel_separator.hpp>

Public Member Functions

bool balanced (double balance) const
idx imbalance () const
bool better_than (const nd_weights &o, double balance) const
 Better than o: balanced beats unbalanced; between balanced states the smaller separator, then the better balance; between unbalanced states the better balance.

Public Attributes

idx w [3] = {0, 0, 0}

Detailed Description

Part weights of a labelling.

Member Function Documentation

◆ balanced()

bool mtl::sparse::ordering::detail::nd_weights::balanced ( double balance) const
inline

◆ better_than()

bool mtl::sparse::ordering::detail::nd_weights::better_than ( const nd_weights & o,
double balance ) const
inline

Better than o: balanced beats unbalanced; between balanced states the smaller separator, then the better balance; between unbalanced states the better balance.

◆ imbalance()

idx mtl::sparse::ordering::detail::nd_weights::imbalance ( ) const
inline

Member Data Documentation

◆ w

idx mtl::sparse::ordering::detail::nd_weights::w[3] = {0, 0, 0}

The documentation for this struct was generated from the following file: