docs: public void takeNoteOfGradient(IntDoubleVector gradient) {
          gradient.iterate(new FnIntDoubleToVoid() {            
              @Override
              public void call(int index, double value) {
                  gradSumSquares[index] += value * value;
                  assert !Double.isNaN(gradSumSquares[index]);
              }
          });
      }