CppAD: A C++ Algorithmic Differentiation Package 20110419
hash_code.hpp File Reference

CppAD hashing utility. More...

Go to the source code of this file.

Defines

#define CPPAD_HASH_TABLE_SIZE   65536
 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 size_t *arg, size_t npar, const Base *par)
 Specialized hash code for a CppAD operator and its arguments.

Detailed Description

CppAD hashing utility.

Definition in file hash_code.hpp.