This class implements the special weight required in recurrent neural networks to implement the BPTS algorithm. These weights can create duplicates of themselves, and their gradient value is calculated as the sum of the gradient values of the duplicates.
Weight(), and inizializes the duplicates set to the empty set.
Weight(double x), and inizializes the duplicates set to the empty set.
bool mourn(CWeight *c)
falseif the pointer is not present in the set.