Rodin::IndexArraySymmetricHash struct

Functor for computing a symmetric hash value for an index array.

This functor computes a hash value for an index array in a way that is independent of the order of the elements. It does so by summing the hash values of individual elements using boost::hash_value.

Public functions

auto operator()(const IndexArray& arr) const -> size_t
Computes the symmetric hash value for the given index array.

Function documentation

size_t Rodin::IndexArraySymmetricHash::operator()(const IndexArray& arr) const

Computes the symmetric hash value for the given index array.

Parameters
arr The index array for which to compute the symmetric hash.
Returns A size_t hash value representing the index array independent of element order.