CindexHasher Struct Reference

#include <nnet-common.h>

Public Member Functions

size_t operator() (const Cindex &cindex) const noexcept
 

Detailed Description

Definition at line 121 of file nnet-common.h.

Member Function Documentation

◆ operator()()

size_t operator() ( const Cindex cindex) const
noexcept

Definition at line 367 of file nnet-common.cc.

367  {
368  // The numbers that appear below were chosen arbitrarily from a list of primes
369  return cindex.first +
370  1619 * cindex.second.n +
371  15649 * cindex.second.t +
372  89809 * cindex.second.x;
373 
374 }

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