Template Function helpme::compute_fletcher_checksum32

Function Documentation

template<typename Real>
uint32_t helpme::compute_fletcher_checksum32(const Real *data, size_t nElements)

compute_fletcher_checksum32 computes the 32bit Fletcher checksum on some data. Only the data that fit exactly into 16bit chunks are considered.

Parameters:
  • data – pointer to the data to checksum.

  • nElements – the number of elements in the array to checksum.

Returns:

the Fletcher checksum.