public BSMOperator(Vector grid, GeneralizedBlackScholesProcess process, double residualTime) : base(grid.size()) { //PdeBSM::grid_type logGrid(grid); LogGrid logGrid = new LogGrid(grid); var cc = new PdeConstantCoeff<PdeBSM>(process, residualTime, process.stateVariable().link.value()); cc.generateOperator(residualTime, logGrid, this); }
public BSMOperator(Vector grid, GeneralizedBlackScholesProcess process, double residualTime) : base(grid.size()) { //PdeBSM::grid_type logGrid(grid); LogGrid logGrid = new LogGrid(grid); var cc = new PdeConstantCoeff <PdeBSM>(process, residualTime, process.stateVariable().link.value()); cc.generateOperator(residualTime, logGrid, this); }
public GenericTimeSetter(Vector grid, GeneralizedBlackScholesProcess process) { grid_ = new LogGrid(grid); pde_ = (PdeClass) new PdeClass().factory(process); }
public GenericTimeSetter(Vector grid, GeneralizedBlackScholesProcess process) { grid_ = new LogGrid(grid); pde_ = (PdeClass)FastActivator <PdeClass> .Create().factory(process); }