Skip to content

Commit

Permalink
Avoid classes deprecated in version 1.32 and removed in 1.37
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 12, 2024
1 parent 0f390e2 commit 94c6d01
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 66 deletions.
14 changes: 0 additions & 14 deletions SWIG/linearalgebra.i
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
%{
using QuantLib::Array;
using QuantLib::Matrix;
using QuantLib::SampledCurve;
%}

%define QL_TYPECHECK_ARRAY 4210 %enddef
Expand Down Expand Up @@ -310,19 +309,6 @@ function(x) print(as.matrix(x)))
setMethod("as.matrix", "_p_Matrix",
function(x) matrix(data=as.numeric(x$dataVector),
nrow=x$rows(), ncol=x$columns()))

setMethod("print", "_p_SampledCurve",
function(x) print(as.data.frame(x))
)

setMethod("as.data.frame", "_p_SampledCurve",
function(x,row.names,optional)
data.frame("grid"=as(x$grid(), "numeric"),
"values"=as(x$values(), "numeric")))

setMethod("plot", "_p_SampledCurve",
function(x,y) plot(as.data.frame(x)))

%}
#endif

Expand Down
6 changes: 0 additions & 6 deletions SWIG/options.i
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ class VanillaOption : public OneAssetOption {
Size maxEvaluations = 100,
Volatility minVol = 1.0e-4,
Volatility maxVol = 4.0);

%extend{
SampledCurve priceCurve() {
return self->result<SampledCurve>("priceCurve");
}
}
};

%template(CalibrationPair) std::pair< ext::shared_ptr<VanillaOption>, ext::shared_ptr<Quote> >;
Expand Down
1 change: 0 additions & 1 deletion SWIG/ql.i
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ QL_DEPRECATED_DISABLE_WARNING
%include randomnumbers.i
%include ratehelpers.i
%include rounding.i
%include sampledcurve.i
%include scheduler.i
%include settings.i
%include shortratemodels.i
Expand Down
45 changes: 0 additions & 45 deletions SWIG/sampledcurve.i

This file was deleted.

0 comments on commit 94c6d01

Please sign in to comment.