zeroGrad method

void zeroGrad()

Implementation

void zeroGrad() {
  for (int i = 0; i < grad.length; i = i + 1) {
    grad[i] = 0.0;
  }
}