IndexHasher Struct Reference

#include <nnet-common.h>

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ operator()()

size_t operator() ( const Index cindex) const
noexcept

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

360  {
361  // The numbers that appear below were chosen arbitrarily from a list of primes
362  return index.n +
363  1619 * index.t +
364  15649 * index.x;
365 }

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