public override void reset(int size) { Utils.QL_REQUIRE(method() == underlying_.method(), () => "option and underlying were initialized on different methods"); values_ = new Vector(size, 0.0); adjustValues(); }
public override void reset(int size) { if (method() != underlying_.method()) { throw new ApplicationException("option and underlying were initialized on different methods"); } values_ = new Vector(size, 0.0); adjustValues(); }