Get rid of unnecessary uses of var_get_dict_index(). 20100408040503/pspp 20100409040510/pspp 20100410040506/pspp 20100411040529/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 8 Apr 2010 05:12:07 +0000 (22:12 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 8 Apr 2010 05:12:07 +0000 (22:12 -0700)
commit58e33e78895d4f19240b679a8d0656643a482f41
tree60eeebb1ede52f1bb4ff9ddeeb11921fc6c1631a
parent00682302c6f2ea7b64370105f10f010e16fe022e
Get rid of unnecessary uses of var_get_dict_index().

Some code used the result of var_get_dict_index() on a pair of variables to
tell whether the variables are the same.  This is unnecessary: v1 == v2
works just as well.

Other code used the result of var_get_dict_index() as part of a hash value
computation.  This is reasonable, but it is even better just to hash the
pointer to the variable.
src/math/coefficient.c
src/math/covariance-matrix.c
src/math/interaction.c