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 188 of file nnet-optimize-utils.cc.

Constructor & Destructor Documentation

SubMatrixHasher ( )
inline

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

189 { }

Member Function Documentation

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

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

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

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