Template Struct matrix_hash

Inheritance Relationships

Base Type

  • public std::unary_function< T, size_t >

Struct Documentation

template<typename T>
struct icrar::matrix_hash : public std::unary_function<T, size_t>

Hash function for Eigen matrix and vector. The code is from hash_combine function of the Boost library. See http://www.boost.org/doc/libs/1_55_0/doc/html/hash/reference.html#boost.hash_combine .

Template Parameters
  • T: Eigen Dense Matrix type

Public Functions

std::size_t operator()(const T &matrix) const