26#ifndef quantlib_linear_op_layout_hpp
27#define quantlib_linear_op_layout_hpp
39 std::partial_sum(
dim_.begin(),
dim_.end()-1,
40 spacing_.begin()+1, std::multiplies<>());
53 const std::vector<Size>&
dim()
const {
57 const std::vector<Size>&
spacing()
const {
65 Size index(
const std::vector<Size>& coordinates)
const {
66 return std::inner_product(coordinates.begin(),
const std::vector< Size > & spacing() const
FdmLinearOpIterator iter_neighbourhood(const FdmLinearOpIterator &iterator, Size i, Integer offset) const
std::vector< Size > spacing_
FdmLinearOpIterator end() const
Size neighbourhood(const FdmLinearOpIterator &iterator, Size i, Integer offset) const
const std::vector< Size > & dim() const
FdmLinearOpLayout(std::vector< Size > dim)
FdmLinearOpIterator begin() const
Size index(const std::vector< Size > &coordinates) const
iterator for a linear fdm operator
QL_INTEGER Integer
integer number
std::size_t Size
size of a container