示例#1
0
 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();
 }
示例#2
0
 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();
 }