Updated ANN code for new math kernels