Skip to content
Snippets Groups Projects
Commit 9496e960 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Fct w/o WinDll qualifier

parent c3488f5e
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@
#ifndef BORNAGAIN_TESTS_FUNCTIONAL_FIT_MINIMIZER_CLASSICALTESTFUNCTIONS_H
#define BORNAGAIN_TESTS_FUNCTIONAL_FIT_MINIMIZER_CLASSICALTESTFUNCTIONS_H
#include "Wrap/WinDllMacros.h"
#include <vector>
//! @class StandaloneFitTest
......@@ -25,9 +24,9 @@
namespace TestFunctions
{
BA_CORE_API_ double RosenBrock(const std::vector<double>& par);
BA_CORE_API_ double WoodFour(const std::vector<double>& par);
BA_CORE_API_ double DecayingSin(double x, const std::vector<double>& par);
double RosenBrock(const std::vector<double>& par);
double WoodFour(const std::vector<double>& par);
double DecayingSin(double x, const std::vector<double>& par);
} // namespace TestFunctions
#endif // BORNAGAIN_TESTS_FUNCTIONAL_FIT_MINIMIZER_CLASSICALTESTFUNCTIONS_H
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
#ifndef SWIG_libBornAgainFit_WRAP_H_
#define SWIG_libBornAgainFit_WRAP_H_
#include <map>
#include <string>
class SwigDirector_PyCallback : public PyCallback, public Swig::Director {
public:
SwigDirector_PyCallback(PyObject *self, PyCallback::CallbackType callback_type = PyCallback::SCALAR);
virtual ~SwigDirector_PyCallback();
virtual double call_scalar(Fit::Parameters pars);
virtual std::vector< double, std::allocator< double > > call_residuals(Fit::Parameters pars);
/* Internal director utilities */
public:
bool swig_get_inner(const char *swig_protected_method_name) const {
std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
return (iv != swig_inner.end() ? iv->second : false);
}
void swig_set_inner(const char *swig_protected_method_name, bool swig_val) const {
swig_inner[swig_protected_method_name] = swig_val;
}
private:
mutable std::map<std::string, bool> swig_inner;
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
/* VTable implementation */
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
PyObject *method = vtable[method_index];
if (!method) {
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
method = PyObject_GetAttr(swig_get_self(), name);
if (!method) {
std::string msg = "Method in class PyCallback doesn't exist, undefined ";
msg += method_name;
Swig::DirectorMethodException::raise(msg.c_str());
}
vtable[method_index] = method;
}
return method;
}
private:
mutable swig::SwigVar_PyObject vtable[2];
#endif
};
#endif
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment