26#ifndef quantlib_montecarlo_path_hpp
27#define quantlib_montecarlo_path_hpp
83 : timeGrid_(
std::move(timeGrid)), values_(
std::move(values)) {
87 "different number of times and asset values");
1-D array used in linear algebra.
1-D array used in linear algebra.
const Real * const_iterator
std::reverse_iterator< const_iterator > const_reverse_iterator
bool empty() const
whether the array is empty
const_reverse_iterator rend() const
const_reverse_iterator rbegin() const
const_iterator end() const
Size size() const
dimension of the array
const_iterator begin() const
single-factor random walk
Array::const_reverse_iterator reverse_iterator
Array::const_iterator iterator
Real back() const
final asset value
reverse_iterator rbegin() const
Path(TimeGrid timeGrid, Array values=Array())
const TimeGrid & timeGrid() const
time grid
Time time(Size i) const
time at the -th point
Real operator[](Size i) const
asset value at the -th point
reverse_iterator rend() const
Real front() const
initial asset value
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container