#include <nnet-common.h>
Definition at line 131 of file nnet-common.h.
◆ operator()()
size_t operator() |
( |
const std::vector< Index > & |
index_vector | ) |
const |
|
noexcept |
Definition at line 388 of file nnet-common.cc.
390 size_t n1 = 15, n2 = 10;
395 size_t len = index_vector.size();
397 size_t ans = 1433 + 34949 * len;
398 std::vector<Index>::const_iterator iter = index_vector.begin(),
399 end = index_vector.end(), med = end;
403 for (; iter != med; ++iter) {
404 ans += iter->n * 1619;
405 ans += iter->t * 15649;
406 ans += iter->x * 89809;
412 for (; iter < end; iter += n2) {
413 ans += iter->n * 1619;
414 ans += iter->t * 15649;
415 ans += iter->x * 89809;
418 if (n2 > len || iter >= end - n2)
The documentation for this struct was generated from the following files: