Template Function icrar::ProcessCache(size_t, const In&, Out&, const std::string&, const std::string&, Lambda)
Defined in File eigen_cache.h
Function Documentation
-
template<typename In, typename Out, typename Lambda>
void icrar::ProcessCache(size_t hash, const In &in, Out &out, const std::string &hashFile, const std::string &cacheFile, Lambda transform) Reads the hash file and writes to cache if the hash file is different, else reads the cache file if hash file is the same.
- Template Parameters:
In – Matrix type
Out – Matrix type
Lambda – lambda type of signature Out(const In&) called if hashes do not match
- Parameters:
in – The input matrix to hash and transform
out – The transformed output
transform – the transform lambda
cacheFile – the transformed out cache file
hashFile – the in hash file