Vector classes


A double vector V is created via

ql.DoubleVector([n])

The optional n is the size of the vector, default is 0. Other vectors (listed below) are created similarly.

For a vector V there are the following methods

V.push_back(obj)

pushes object to back of V.

V[i]

retrieves object at location i, where i starts at 0 to V:size()-1.

V:size()

returns size of V.

QuantLib contains the following Vectors:

CalibrationHelperVectorA vector of Calibration helpers

DateVector a vector of dates

DoubleVector a vector of doubles

DefaultProbabilityHelperVector a vector of Default probability helpers

IntervalPriceVectora vector of Interval Prices

IntVector a vector of integers

NodeVectora vector of node pairs

PeriodVectora vector of Periods

QuoteHandleVectora vector of quote handles

QuoteVectora vector of quotes

RateHelperVectora vector of rate helpers

StochasticProcessVectora vector of stochastic processes

StrVectora vector of strings

UnsignedIntVectora vector of unsigned integers

YoYHelperVectora vector of Year on Year inflation term structure helpers


Index