24#ifndef quantlib_tree_lattice_1d_hpp
25#define quantlib_tree_lattice_1d_hpp
47 grid[j] = this->
impl().underlying(i,j);
51 return this->
impl().underlying(i,index);
1-D array used in linear algebra.
Size size() const
dimension of the array
const TimeGrid & timeGrid() const
Size index(Time t) const
returns the index i such that grid[i] = t
One-dimensional tree-based lattice.
TreeLattice1D(const TimeGrid &timeGrid, Size n)
Real underlying(Size i, Size index) const
Array grid(Time t) const override
Tree-based lattice-method base class.
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container
Tree-based lattice-method class.