Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members
LiborArray2D< S > Class Template Reference
#include <Array.h>
List of all members.
Detailed Description
template<typename S>
class LiborArray2D< S >
Array in dimension 2 to contain Libors under the assumption that nSteps time steps are taken in each accrual interval. For each accrual interval the array has block of nSteps rows of length n-t-1 (the number of Libors still alive in this time interval), one row for each time step. Each such row has column index base t+1.
In other words: during time step s we are in row r[s][] with t=s/nStep and elements in this row are subscripted as r(s,j), j=t+1,...,n-1 corresponding to the indices of the surviving Libors.
- Parameters:
-
S | type of array elements. |
Definition at line 571 of file Array.h.
Constructor & Destructor Documentation
template<typename S> |
LiborArray2D< S >::LiborArray2D |
( |
int |
dim, |
|
|
int |
steps |
|
) |
[inline] |
|
|
- Parameters:
-
dim | dimension of underlying Libor process (number n of accrual intervals). |
steps | number of time step in each accrual interval. |
Definition at line 596 of file Array.h. |
template<typename S> |
LiborArray2D< S >::~LiborArray2D |
( |
|
) |
[inline] |
|
Member Function Documentation
template<typename S> |
const S& LiborArray2D< S >::operator() |
( |
int |
s, |
|
|
int |
j |
|
) |
const [inline] |
|
|
Subscripting.
Definition at line 619 of file Array.h. |
template<typename S> |
S& LiborArray2D< S >::operator() |
( |
int |
s, |
|
|
int |
j |
|
) |
[inline] |
|
|
Subscripting.
Definition at line 629 of file Array.h. |
Member Data Documentation
template<typename S> |
int LiborArray2D< S >::n [protected]
|
|
|
Dimension of the Libor process.
Definition at line 576 of file Array.h. |
template<typename S> |
int LiborArray2D< S >::nSteps [protected]
|
|
|
Number of time steps of the underlying Libor process in each Libor accrual interval.
Definition at line 581 of file Array.h. |
template<typename S> |
S** LiborArray2D< S >::dptr [protected]
|
|
|
Data array.
Definition at line 584 of file Array.h. |
The documentation for this class was generated from the following file:
Generated on Mon Sep 22 02:16:33 2003 for Libor-Library by
1.3-rc3