CppAD: A C++ Algorithmic Differentiation Package  20130102
hash_code.hpp

Files

file  hash_code.hpp
 

CppAD hashing utility.


Defines

#define CPPAD_HASH_TABLE_SIZE   10000
 the codes retruned by hash_code are between zero and CPPAD_HASH_TABLE_SIZE minus one.

Functions

template<class Value >
unsigned short hash_code (const Value &value)
 General purpose hash code for an arbitrary value.
template<class Base >
unsigned short hash_code (OpCode op, const addr_t *arg, size_t npar, const Base *par)
 Specialized hash code for a CppAD operator and its arguments.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines