26#ifndef quantlib_fdm_affine_map_composite_hpp
27#define quantlib_fdm_affine_map_composite_hpp
49 QL_FAIL(
" ublas representation is not implemented");
54 return std::accumulate(dcmp.begin()+1, dcmp.end(),
1-D array used in linear algebra.
virtual Size size() const =0
virtual std::vector< SparseMatrix > toMatrixDecomp() const
SparseMatrix toMatrix() const override
virtual void setTime(Time t1, Time t2)=0
Time is required.
virtual Array preconditioner(const Array &r, Real s) const =0
virtual Array apply_mixed(const Array &r) const =0
virtual Array solve_splitting(Size direction, const Array &r, Real s) const =0
virtual Array apply_direction(Size direction, const Array &r) const =0
#define QL_FAIL(message)
throw an error (possibly with file and line information)
linear operator to model a multi dimensinal pde system
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container
boost::numeric::ublas::compressed_matrix< Real > SparseMatrix
ext::shared_ptr< YieldTermStructure > r
typedef for boost sparse matrix class