Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed May 30, 2020
1 parent d24c188 commit 23907f1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 32 deletions.
6 changes: 0 additions & 6 deletions QuantLib.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -2265,9 +2265,6 @@
<ClInclude Include="ql\processes\hestonprocess.hpp">
<Filter>processes</Filter>
</ClInclude>
<ClInclude Include="ql\processes\coxingersollross.hpp">
<Filter>processes</Filter>
</ClInclude>
<ClInclude Include="ql\processes\hullwhiteprocess.hpp">
<Filter>processes</Filter>
</ClInclude>
Expand Down Expand Up @@ -5484,9 +5481,6 @@
<ClCompile Include="ql\processes\hestonprocess.cpp">
<Filter>processes</Filter>
</ClCompile>
<ClCompile Include="ql\processes\coxingersollross.cpp">
<Filter>processes</Filter>
</ClCompile>
<ClCompile Include="ql\processes\hullwhiteprocess.cpp">
<Filter>processes</Filter>
</ClCompile>
Expand Down
2 changes: 1 addition & 1 deletion ql/methods/finitedifferences/operators/fdmcirop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace QuantLib {
void FdmCIRMixedPart::setTime(Time t1, Time t2) {
const Real v = std::sqrt(sigma1_->blackForwardVariance(t1, t2, strike_)/(t2-t1));
NinePointLinearOp op(dyMap_.mult(Array(mesher_->layout()->size(), v)));
mapT_.reset(op);
mapT_.swap(op);
}

const NinePointLinearOp& FdmCIRMixedPart::getMap() const {
Expand Down
23 changes: 0 additions & 23 deletions ql/methods/finitedifferences/operators/ninepointlinearop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,29 +201,6 @@ namespace QuantLib {
return retVal;
}

void NinePointLinearOp::reset(NinePointLinearOp m)
{
const Size size = mesher_->layout()->size();

std::copy(m.i00_.get(), m.i00_.get()+size, i00_.get());
std::copy(m.i10_.get(), m.i10_.get()+size, i10_.get());
std::copy(m.i20_.get(), m.i20_.get()+size, i20_.get());
std::copy(m.i01_.get(), m.i01_.get()+size, i01_.get());
std::copy(m.i21_.get(), m.i21_.get()+size, i21_.get());
std::copy(m.i02_.get(), m.i02_.get()+size, i02_.get());
std::copy(m.i12_.get(), m.i12_.get()+size, i12_.get());
std::copy(m.i22_.get(), m.i22_.get()+size, i22_.get());
std::copy(m.a00_.get(), m.a00_.get()+size, a00_.get());
std::copy(m.a10_.get(), m.a10_.get()+size, a10_.get());
std::copy(m.a20_.get(), m.a20_.get()+size, a20_.get());
std::copy(m.a01_.get(), m.a01_.get()+size, a01_.get());
std::copy(m.a11_.get(), m.a11_.get()+size, a11_.get());
std::copy(m.a21_.get(), m.a21_.get()+size, a21_.get());
std::copy(m.a02_.get(), m.a02_.get()+size, a02_.get());
std::copy(m.a12_.get(), m.a12_.get()+size, a12_.get());
std::copy(m.a22_.get(), m.a22_.get()+size, a22_.get());
}

void NinePointLinearOp::swap(NinePointLinearOp& m) {
std::swap(d0_, m.d0_);
std::swap(d1_, m.d1_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ namespace QuantLib {
Disposable<NinePointLinearOp> mult(const Array& u) const;

void swap(NinePointLinearOp& m);
void reset(NinePointLinearOp m);

#if !defined(QL_NO_UBLAS_SUPPORT)
Disposable<SparseMatrix> toMatrix() const;
Expand Down
1 change: 1 addition & 0 deletions ql/processes/all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <ql/processes/merton76process.hpp>
#include <ql/processes/mfstateprocess.hpp>
#include <ql/processes/ornsteinuhlenbeckprocess.hpp>
#include <ql/processes/coxingersollrossprocess.hpp>
#include <ql/processes/squarerootprocess.hpp>
#include <ql/processes/stochasticprocessarray.hpp>

2 changes: 1 addition & 1 deletion test-suite/quantlibtestsuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ test_suite* init_unit_test_suite(int, char* []) {

test->add(QUANTLIB_TEST_CASE(startTimer));

test->add(FdCIRTest::suite(speed));
test->add(AmericanOptionTest::suite());
test->add(AndreasenHugeVolatilityInterplTest::suite(speed));
test->add(ArrayTest::suite());
Expand Down Expand Up @@ -405,6 +404,7 @@ test_suite* init_unit_test_suite(int, char* []) {
test->add(FdHestonTest::suite(speed));
test->add(FdmLinearOpTest::suite());
test->add(FdCevTest::suite(speed));
test->add(FdCIRTest::suite(speed));
test->add(FdSabrTest::suite(speed));
test->add(FittedBondDiscountCurveTest::suite());
test->add(ForwardOptionTest::suite());
Expand Down

0 comments on commit 23907f1

Please sign in to comment.