1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
12
using System.Runtime.InteropServices;
14
public class BFGS : OptimizationMethod {
15
private HandleRef swigCPtr;
17
internal BFGS(IntPtr cPtr, bool cMemoryOwn) : base(NQuantLibcPINVOKE.BFGSUpcast(cPtr), cMemoryOwn) {
18
swigCPtr = new HandleRef(this, cPtr);
21
internal static HandleRef getCPtr(BFGS obj) {
22
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29
public override void Dispose() {
31
if (swigCPtr.Handle != IntPtr.Zero) {
34
NQuantLibcPINVOKE.delete_BFGS(swigCPtr);
36
swigCPtr = new HandleRef(null, IntPtr.Zero);
38
GC.SuppressFinalize(this);
43
public BFGS() : this(NQuantLibcPINVOKE.new_BFGS(), true) {
44
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();