20#include <ql/math/matrixutilities/pseudosqrt.hpp>
21#include <ql/legacy/libormarketmodels/lmlinexpcorrmodel.hpp>
28 corrMatrix_(size, size),
29 factors_((factors !=
Null<
Size>()) ? factors : size) {
66 = rho + (1-rho)*std::exp(-beta*std::fabs(
Real(i)-
Real(j)));
1-D array used in linear algebra.
Constraint imposing all arguments to be in [low,high]
Standard constant parameter .
libor forward correlation model
std::vector< Parameter > arguments_
Matrix pseudoSqrt(Time t, const Array &x=Null< Array >()) const override
LmLinearExponentialCorrelationModel(Size size, Real rho, Real beta, Size factors=Null< Size >())
bool isTimeIndependent() const override
void generateArguments() override
Size factors() const override
Matrix correlation(Time t, const Array &x=Null< Array >()) const override
Matrix used in linear algebra.
template class providing a null value for a given type.
Constraint imposing positivity to all arguments
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container
Matrix rankReducedSqrt(const Matrix &matrix, Size maxRank, Real componentRetainedPercentage, SalvagingAlgorithm::Type sa)
Matrix transpose(const Matrix &m)