Wildmeshing Toolkit
vector_hash.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <cstdint>
3 #include <vector>
4 
5 namespace wmtk {
6 class Rational;
7 }
8 
9 namespace wmtk::utils {
10 // computes a hash of the input data. Useful for implementing merkle trees
11 std::size_t vector_hash(const std::vector<std::size_t>& data);
12 std::size_t vector_hash(const std::vector<int64_t>& data);
13 std::size_t vector_hash(const std::vector<double>& data);
14 std::size_t vector_hash(const std::vector<char>& data);
15 std::size_t vector_hash(const std::vector<Rational>& data);
16 } // namespace wmtk::utils
std::size_t vector_hash(const std::vector< size_t > &data)
Definition: vector_hash.cpp:28
Definition: Accessor.hpp:6