Mantid
Loading...
Searching...
No Matches
Jacobian.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9#include <boost/python/class.hpp>
10#include <boost/python/register_ptr_to_python.hpp>
11
13using namespace boost::python;
14
16
18 register_ptr_to_python<Jacobian *>();
19
20 class_<Jacobian, boost::noncopyable>("Jacobian", no_init)
21 .def("set", &Jacobian::set, (arg("self"), arg("iy"), arg("ip"), arg("value")),
22 "Set an element of the Jacobian matrix where iy=index of data "
23 "point, ip=index of parameter.")
24
25 .def("get", &Jacobian::get, (arg("self"), arg("iy"), arg("ip")),
26 "Return the given element of the Jacobian matrix where iy=index of "
27 "data point, ip=index of parameter.");
28}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_Jacobian()
Definition: Jacobian.cpp:17
Represents the Jacobian in IFitFunction::functionDeriv.
Definition: Jacobian.h:22
virtual double get(size_t iY, size_t iP)=0
Get the value to a Jacobian matrix element.
virtual void set(size_t iY, size_t iP, double value)=0
Set a value to a Jacobian matrix element.