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