final Array grid = method().grid(t);
// add back all dividend amounts in the future
for (int i=0; i<this.arguments.dividends.size(); i++) {
final double dividendTime = dividendTimes.get(i);
if (dividendTime >= t || Closeness.isCloseEnough(dividendTime,t)) {
final Dividend d = this.arguments.dividends.get(i);
for (int j=0; j<grid.size(); j++) {
double v = grid.get(j);
v += d.amount(v);
grid.set(j,v);// += d->amount(grid[j]);
}
}
}
return grid;