Skip to content

Commit

Permalink
More clang-tidy suggestions, dead link
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Nov 18, 2024
1 parent bb4b781 commit e8e8b06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ql/math/interpolations/chebyshevinterpolation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
#include <ql/math/array.hpp>
#include <ql/math/interpolation.hpp>


namespace QuantLib {
/*! References:
S.A. Sarra: Chebyshev Interpolation: An Interactive Tour,
https://www.maa.org/sites/default/files/images/upload_library/4/vol6/Sarra/Chebyshev.html
*/

/*! See S.A. Sarra: Chebyshev Interpolation: An Interactive Tour. */
class ChebyshevInterpolation: public Interpolation {
public:
enum PointsType {FirstKind, SecondKind};
Expand All @@ -45,8 +41,11 @@ namespace QuantLib {
Size n, const std::function<Real(Real)>& f,
PointsType pointsType = SecondKind);

~ChebyshevInterpolation() override = default;
explicit ChebyshevInterpolation(const ChebyshevInterpolation&) = delete;
explicit ChebyshevInterpolation(ChebyshevInterpolation&&) = delete;
ChebyshevInterpolation& operator=(const ChebyshevInterpolation&) = delete;
ChebyshevInterpolation& operator=(ChebyshevInterpolation&&) = delete;

void updateY(const Array& y);

Expand All @@ -57,6 +56,7 @@ namespace QuantLib {
const Array x_;
Array y_;
};

}

#endif
2 changes: 1 addition & 1 deletion ql/math/matrixutilities/pseudosqrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ namespace QuantLib {
sqrtEigenvalues.begin(), sqrtEigenvalues.end(),
jd.eigenvectors().row_begin(i),
diagonal.column_begin(i),
std::multiplies<Real>()
std::multiplies<>()
);

result = jd.eigenvectors()*diagonal;
Expand Down
2 changes: 2 additions & 0 deletions ql/pricingengines/basket/fdndimblackscholesvanillaengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ namespace QuantLib {
break;
#define BOOST_PP_LOCAL_LIMITS (1, PDE_MAX_SUPPORTED_DIM)
#include BOOST_PP_LOCAL_ITERATE()
default:
QL_FAIL("Not implemented for " << processes_.size() << " processes");
}

if (isEuropean)
Expand Down

0 comments on commit e8e8b06

Please sign in to comment.