All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ComputationRenumberer::SubMatrixHasher Struct Reference

Public Member Functions

 SubMatrixHasher ()
 
size_t operator() (const NnetComputation::SubMatrixInfo &submat) const noexcept
 

Detailed Description

Definition at line 189 of file nnet-optimize-utils.cc.

Constructor & Destructor Documentation

SubMatrixHasher ( )
inline

Definition at line 190 of file nnet-optimize-utils.cc.

190 { }

Member Function Documentation

size_t operator() ( const NnetComputation::SubMatrixInfo submat) const
inlinenoexcept

Definition at line 191 of file nnet-optimize-utils.cc.

191  {
192  // these numbers are arbitrarily chosen primes.
193  return submat.matrix_index +
194  19553 * submat.row_offset +
195  29297 * submat.num_rows +
196  42209 * submat.col_offset +
197  56527 * submat.num_cols;
198  }

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