Linux Manuals session 3

Section 3: library functions

  • |

    TreeLattice1D (3) Linux Manual Page

    QuantLib::TreeLattice1D – One-dimensional tree-based lattice. Synopsis#include <ql/methods/lattices/lattice1d.hpp> Inherits TreeLattice< Impl >. Public Member FunctionsTreeLattice1D (const TimeGrid &timeGrid, Size n) Disposable< Array > grid (Time t) const Real underlying (Size i, Size index) const Detailed Descriptiontemplate<class Impl> class QuantLib::TreeLattice1D< Impl >One-dimensional tree-based lattice. Derived classes must implement the following interface: Real underlying(Size i, Size index) const; …

  • |

    TreeLattice (3) Linux Manual Page

    QuantLib::TreeLattice – Tree-based lattice-method base class. Synopsis#include <ql/methods/lattices/lattice.hpp> Inherits QuantLib::Lattice, and CuriouslyRecurringTemplate< Impl >. Public Member FunctionsTreeLattice (const TimeGrid &timeGrid, Size n) const Array & statePrices (Size i) const void stepback (Size i, const Array &values, Array &newValues) const Lattice interface void initialize (DiscretizedAsset &, Time t) const initialize an asset at the given time….

  • |

    TreeCapFloorEngine (3) Linux Manual Page

    QuantLib::TreeCapFloorEngine – Numerical lattice engine for cap/floors. Synopsis#include <ql/pricingengines/capfloor/treecapfloorengine.hpp> Inherits LatticeShortRateModelEngine< CapFloor::arguments, CapFloor::results >. Public Member Functionsvoid calculate () const Constructors Note: the term structure is only needed when the short-rate model cannot provide one itself. TreeCapFloorEngine (const boost::shared_ptr< ShortRateModel > &model, Size timeSteps, const Handle< YieldTermStructure > &termStructure=Handle< YieldTermStructure >()) TreeCapFloorEngine (const boost::shared_ptr< ShortRateModel…

  • |

    TreeCallableZeroCouponBondEngine (3) Linux Manual Page

    QuantLib::TreeCallableZeroCouponBondEngine – Numerical lattice engine for callable zero coupon bonds. Synopsis#include <ql/experimental/callablebonds/treecallablebondengine.hpp> Inherits QuantLib::TreeCallableFixedRateBondEngine. Public Member FunctionsTreeCallableZeroCouponBondEngine (const boost::shared_ptr< ShortRateModel > &model, const Size timeSteps, const Handle< YieldTermStructure > &termStructure=Handle< YieldTermStructure >()) TreeCallableZeroCouponBondEngine (const boost::shared_ptr< ShortRateModel > &model, const TimeGrid &timeGrid, const Handle< YieldTermStructure > &termStructure=Handle< YieldTermStructure >()) Detailed DescriptionNumerical lattice engine for callable zero…

  • |

    TreeCallableFixedRateBondEngine (3) Linux Manual Page

    QuantLib::TreeCallableFixedRateBondEngine – Numerical lattice engine for callable fixed rate bonds. Synopsis#include <ql/experimental/callablebonds/treecallablebondengine.hpp> Inherits LatticeShortRateModelEngine< CallableBond::arguments, CallableBond::results >. Inherited by TreeCallableZeroCouponBondEngine. Public Member Functionsvoid calculate () const Constructors Note: the term structure is only needed when the short-rate model cannot provide one itself. TreeCallableFixedRateBondEngine (const boost::shared_ptr< ShortRateModel > &, const Size timeSteps, const Handle< YieldTermStructure >…

  • |

    Tree (3) Linux Manual Page

    QuantLib::Tree – Tree approximating a single-factor diffusion Synopsis#include <ql/methods/lattices/tree.hpp> Inherits CuriouslyRecurringTemplate< T >. Public Member FunctionsTree (Size columns) Size columns () const Detailed Descriptiontemplate<class T> class QuantLib::Tree< T >Tree approximating a single-factor diffusion Derived classes must implement the following interface: public: Real underlying(Size i, Size index) const; Size size(Size i) const; Size descendant(Size i, Size…

  • |

    TrapezoidIntegral (3) Linux Manual Page

    QuantLib::TrapezoidIntegral – Integral of a one-dimensional function. Synopsis#include <ql/math/integrals/trapezoidintegral.hpp> Inherits QuantLib::Integrator. Public Member FunctionsTrapezoidIntegral (Real accuracy, Size maxIterations) Protected Member FunctionsReal integrate (const boost::function< Real(Real)> &f, Real a, Real b) const Detailed Descriptiontemplate<class IntegrationPolicy> class QuantLib::TrapezoidIntegral< IntegrationPolicy >Integral of a one-dimensional function. Given a target accuracy $ \psilon $, the integral of a function $…

  • |

    TransientShell (3) Linux Manual Page

    TransientShell — The TransientShell widget class Synopsis#include <Xm/Xm.h> #include <X11/Shell.h>DescriptionTransientShell is used for shell windows that can be manipulated by the window manager, but are not allowed to be iconified separately. For example, DialogBoxes make no sense without their associated application. They are iconified by the window manager only if the main application shell is…

  • |

    TransformedGrid (3) Linux Manual Page

    QuantLib::TransformedGrid – transformed grid Synopsis#include <ql/math/transformedgrid.hpp> Inherited by LogGrid. Public Member FunctionsTransformedGrid (const Array &grid) template<class T > TransformedGrid (const Array &grid, T func) const Array & gridArray () const const Array & transformedGridArray () const const Array & dxmArray () const const Array & dxpArray () const const Array & dxArray () const Real…

  • |

    TqrEigenDecomposition (3) Linux Manual Page

    QuantLib::TqrEigenDecomposition – tridiag. QR eigen decomposition with explicite shift aka Wilkinson Synopsis#include <ql/math/matrixutilities/tqreigendecomposition.hpp> Public Typesenum EigenVectorCalculation { WithEigenVector, WithoutEigenVector, OnlyFirstRowEigenVector } enum ShiftStrategy { NoShift, Overrelaxation, CloseEigenValue } Public Member FunctionsTqrEigenDecomposition (const Array &diag, const Array &sub, EigenVectorCalculation calc=WithEigenVector, ShiftStrategy strategy=CloseEigenValue) const Array & eigenvalues () const const Matrix & eigenvectors () const Size iterations…

  • |

    TopLevelShell (3) Linux Manual Page

    TopLevelShell — The TopLevelShell widget class Synopsis#include <Xm/Xm.h> #include <X11/Shell.h>DescriptionTopLevelShell is used for normal top-level windows such as any additional top-level widgets an application needs. ClassesTopLevelShell inherits behavior and resources from Core, Composite, Shell, WMShell, and VendorShell. The class pointer is topLevelShellWidgetClass. The class name is TopLevelShell. New ResourcesThe following table defines a set of…

  • |

    Tk_Y (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis#include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin) int…

  • |

    Tk_X (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis#include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin) int…

  • |

    Tk_WindowId (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis#include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin) int…

  • |

    Tk_Width (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis#include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin) int…

  • |

    Tk_Visual (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis#include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin) int…

  • |

    Tk_UnsetGrid (3) Linux Manual Page

    Tk_SetGrid, Tk_UnsetGrid – control the grid for interactive resizing Synopsis#include <tk.h> Tk_SetGrid(tkwin, reqWidth, reqHeight, widthInc, heightInc) Tk_UnsetGrid(tkwin)ArgumentsTk_Window tkwin (in) Token for window. int reqWidth (in) Width in grid units that corresponds to the pixel dimension tkwin has requested via Tk_GeometryRequest. int reqHeight (in) Height in grid units that corresponds to the pixel dimension tkwin has…

  • |

    Tk_UnmapWindow (3) Linux Manual Page

    Tk_MapWindow, Tk_UnmapWindow – map or unmap a window Synopsis#include <tk.h> Tk_Window Tk_MapWindow(tkwin) Tk_UnmapWindow(tkwin)ArgumentsTk_Window tkwin (in) Token for window. DescriptionThese procedures may be used to map and unmap windows managed by Tk. Tk_MapWindow maps the window given by tkwin, and also creates an X window corresponding to tkwin if it does not already exist. See the…

  • |

    Tk_UnmaintainGeometry (3) Linux Manual Page

    Tk_MaintainGeometry, Tk_UnmaintainGeometry – maintain geometry of one window relative to another Synopsis#include <tk.h> Tk_MaintainGeometry(slave, master, x, y, width, height) Tk_UnmaintainGeometry(slave, master)ArgumentsTk_Window slave (in) Window whose geometry is to be controlled. Tk_Window master (in) Window relative to which slave‘s geometry will be controlled. int x (in) Desired x-coordinate of slave in master, measured in pixels from…

  • |

    Tk_Ungrab (3) Linux Manual Page

    Tk_Grab, Tk_Ungrab – manipulate grab state in an application Synopsis#include <tk.h> int Tk_Grab(interp, tkwin, grabGlobal) void Tk_Ungrab(tkwin)ArgumentsTcl_Interp *interp (in) Interpreter to use for error reporting Tk_Window tkwin (in) Window on whose behalf the pointer is to be grabbed or released int grabGlobal (in) Boolean indicating whether the grab is global or application local DescriptionThese functions…