docs: @Override
    protected void clearCache() {
      if (lastX != null) lastX[0] = Double.NaN;
      if (lastXBatch != null) lastXBatch[0] = Double.NaN;
      if (lastVBatch != null) lastVBatch[0] = Double.NaN;
    }