QuantLib
: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
ql
math
matrixutilities
pseudosqrt.hpp
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
/*
4
Copyright (C) 2003, 2004 Ferdinando Ametrano
5
6
This file is part of QuantLib, a free-software/open-source library
7
for financial quantitative analysts and developers - http://quantlib.org/
8
9
QuantLib is free software: you can redistribute it and/or modify it
10
under the terms of the QuantLib license. You should have received a
11
copy 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
15
This program is distributed in the hope that it will be useful, but WITHOUT
16
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17
FOR A PARTICULAR PURPOSE. See the license for more details.
18
*/
19
24
#ifndef quantlib_pseudo_sqrt_hpp
25
#define quantlib_pseudo_sqrt_hpp
26
27
#include <ql/math/matrix.hpp>
28
29
namespace
QuantLib
{
30
32
struct
SalvagingAlgorithm
{
33
enum
Type
{
None
,
Spectral
,
Hypersphere
,
LowerDiagonal
,
Higham
};
34
};
35
37
64
Matrix
pseudoSqrt
(
const
Matrix&,
65
SalvagingAlgorithm::Type
=
SalvagingAlgorithm::None
);
66
68
80
Matrix
rankReducedSqrt
(
const
Matrix&,
81
Size
maxRank,
82
Real
componentRetainedPercentage,
83
SalvagingAlgorithm::Type
);
84
}
85
86
87
#endif
QuantLib::Real
QL_REAL Real
real number
Definition:
types.hpp:50
QuantLib::Size
std::size_t Size
size of a container
Definition:
types.hpp:58
QuantLib
Definition:
any.hpp:35
QuantLib::pseudoSqrt
Matrix pseudoSqrt(const Matrix &matrix, SalvagingAlgorithm::Type sa)
Definition:
pseudosqrt.cpp:347
QuantLib::rankReducedSqrt
Matrix rankReducedSqrt(const Matrix &matrix, Size maxRank, Real componentRetainedPercentage, SalvagingAlgorithm::Type sa)
Definition:
pseudosqrt.cpp:427
QuantLib::SalvagingAlgorithm
algorithm used for matricial pseudo square root
Definition:
pseudosqrt.hpp:32
QuantLib::SalvagingAlgorithm::Type
Type
Definition:
pseudosqrt.hpp:33
QuantLib::SalvagingAlgorithm::Higham
@ Higham
Definition:
pseudosqrt.hpp:33
QuantLib::SalvagingAlgorithm::Hypersphere
@ Hypersphere
Definition:
pseudosqrt.hpp:33
QuantLib::SalvagingAlgorithm::None
@ None
Definition:
pseudosqrt.hpp:33
QuantLib::SalvagingAlgorithm::Spectral
@ Spectral
Definition:
pseudosqrt.hpp:33
QuantLib::SalvagingAlgorithm::LowerDiagonal
@ LowerDiagonal
Definition:
pseudosqrt.hpp:33
Generated by
Doxygen
1.9.5