code = hash_code(x)
Basetype values when recording
AD<Base>operations. A hashing function is used to reduce number of values stored in this table; for example, it is not necessary to store the value 3.0 every time it is used as a parameter .
Basevalue. In most cases this works well, but in some cases it does not. For example, in the base_adolc.hpp case, an
adoublevalue can have fields that are not initialized and
valgrindreported an error when these are used to form the hash code.
It is the value we are forming a hash code for.
const Base& x
It is the hash code corresponding to
unsigned short code
x. This intention is the commonly used values will have different hash codes. The hash code must satisfy
so that it is a valid index into the hash code table.
code < CPPAD_HASH_TABLE_SIZE
inline, so that you do not get multiple definitions from different compilation units.
base_allochash_code and the