QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
forwardforwardmappings.hpp
Go to the documentation of this file.
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
20/*! \file forwardforwardmappings.hpp
21\brief Utility functions for mapping between forward rates of varying tenor
22*/
23
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 {
36 /*! Returns the dg[i]/df[j] jacobian between
37 forward rates with tenor multipler and forward rates with tenor 1*/
39 Size multiplier,
40 Size offset);
41
42 /*! Returns the Y matrix to switch base
43 forward rates with tenor multipler and forward rates with tenor 1*/
44
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
51 /*!
52 replaces curve state with curve state based on periodic subset of times
53
54 */
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 used in linear algebra.
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