25#ifndef quantlib_lattice_hpp
26#define quantlib_lattice_hpp
34 class DiscretizedAsset;
1-D array used in linear algebra.
1-D array used in linear algebra.
Discretized asset class used by numerical methods.
Lattice (tree, finite-differences) base class
virtual void partialRollback(DiscretizedAsset &, Time to) const =0
virtual Real presentValue(DiscretizedAsset &) const =0
computes the present value of an asset.
virtual Array grid(Time) const =0
virtual void initialize(DiscretizedAsset &, Time time) const =0
initialize an asset at the given time.
virtual ~Lattice()=default
const TimeGrid & timeGrid() const
virtual void rollback(DiscretizedAsset &, Time to) const =0
Lattice(TimeGrid timeGrid)
Real Time
continuous quantity with 1-year units