20#ifndef quantlib_longstaff_schwartz_multi_path_pricer_hpp
21#define quantlib_longstaff_schwartz_multi_path_pricer_hpp
48 const std::vector<Size>& timePositions,
72 const ext::shared_ptr<PathPayoff>
payoff_;
81 mutable std::vector<PathInfo>
paths_;
1-D array used in linear algebra.
Shared handle to an observable.
Longstaff-Schwarz path pricer for early exercise options.
std::unique_ptr< Array[]> coeff_
const std::vector< Size > timePositions_
std::unique_ptr< Real[]> lowerBounds_
const std::vector< Handle< YieldTermStructure > > forwardTermStructures_
const std::vector< ext::function< Real(Array)> > v_
const ext::shared_ptr< PathPayoff > payoff_
std::vector< PathInfo > paths_
PathInfo transformPath(const MultiPath &path) const
Real operator()(const MultiPath &multiPath) const override
Correlated multiple asset paths.
base class for path pricers
Maps function, bind and cref to either the boost or std implementation.
std::size_t Size
size of a container
ext::shared_ptr< QuantLib::Payoff > payoff
utility classes for Longstaff-Schwartz early-exercise Monte Carlo
Correlated multiple asset paths.
base class for single-path pricers
std::vector< Array > states
Interest-rate term structure.