QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
forwardforwardmappings.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4Copyright (C) 2007 Mark Joshi
5
6This file is part of QuantLib, a free-software/open-source library
7for financial quantitative analysts and developers - http://quantlib.org/
8
9QuantLib is free software: you can redistribute it and/or modify it
10under the terms of the QuantLib license. You should have received a
11copy of the license along with this program; if not, please email
12<quantlib-dev@lists.sf.net>. The license is also available online at
13<http://quantlib.org/license.shtml>.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
24#ifndef quantlib_forward_forward_mappings_hpp
25#define quantlib_forward_forward_mappings_hpp
26
27#include <ql/math/matrix.hpp>
28
29namespace QuantLib {
30
31 class CurveState;
32 class LMMCurveState;
33
34 namespace ForwardForwardMappings
35 {
39 Size multiplier,
40 Size offset);
41
45 Matrix YMatrix(const CurveState& cs,
46 const std::vector<Spread>& shortDisplacements,
47 const std::vector<Spread>& longDisplacements,
48 Size Multiplier,
49 Size offset);
50
56 Size multiplier,
57 Size offSet);
58
59 }
60
61 }
62
63#endif
Curve state for market-model simulations
Definition: curvestate.hpp:41
Curve state for Libor market models
Matrix used in linear algebra.
Definition: matrix.hpp:41
std::size_t Size
size of a container
Definition: types.hpp:58
Matrix ForwardForwardJacobian(const CurveState &cs, Size multiplier, Size offset)
LMMCurveState RestrictCurveState(const CurveState &cs, Size multiplier, Size offSet)
Matrix YMatrix(const CurveState &cs, const std::vector< Spread > &shortDisplacements, const std::vector< Spread > &longDisplacements, Size Multiplier, Size offset)
Definition: any.hpp:35