org.quantlib.Fdm6dimSolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quantlib Show documentation
Show all versions of quantlib Show documentation
Java language binding for QuantLib
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.2.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.quantlib;
public class Fdm6dimSolver implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected Fdm6dimSolver(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Fdm6dimSolver obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
QuantLibJNI.delete_Fdm6dimSolver(swigCPtr);
}
swigCPtr = 0;
}
}
public Fdm6dimSolver(FdmSolverDesc solverDesc, FdmSchemeDesc schemeDesc, FdmLinearOpComposite op) {
this(QuantLibJNI.new_Fdm6dimSolver(FdmSolverDesc.getCPtr(solverDesc), solverDesc, FdmSchemeDesc.getCPtr(schemeDesc), schemeDesc, FdmLinearOpComposite.getCPtr(op), op), true);
}
public double interpolateAt(DoubleVector x) {
return QuantLibJNI.Fdm6dimSolver_interpolateAt(swigCPtr, this, DoubleVector.getCPtr(x), x);
}
public double thetaAt(DoubleVector x) {
return QuantLibJNI.Fdm6dimSolver_thetaAt(swigCPtr, this, DoubleVector.getCPtr(x), x);
}
}