29 ext::shared_ptr<FdmMesher> mesher, ext::shared_ptr<FdmInnerValueCalculator> calculator)
34 "inconsistent array dimensions");
36 for (
const auto& iter : *
mesher_->layout()) {
38 if (innerValue > a[iter.index()]) {
39 a[iter.index()] = innerValue;
1-D array used in linear algebra.
Size size() const
dimension of the array
FdmAmericanStepCondition(ext::shared_ptr< FdmMesher > mesher, ext::shared_ptr< FdmInnerValueCalculator > calculator)
const ext::shared_ptr< FdmMesher > mesher_
const ext::shared_ptr< FdmInnerValueCalculator > calculator_
void applyTo(Array &a, Time) const override
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
const ext::shared_ptr< CEVCalculator > calculator_
american step condition for multi dimensional problems
memory layout of a fdm linear operator
const ext::shared_ptr< FdmMesher > mesher_
Real Time
continuous quantity with 1-year units