Mantid
|
An implementation of Jacobian using std::vector. More...
#include <Jacobian.h>
Public Member Functions | |
void | addNumberToColumn (const double &value, const size_t &iP) override |
overwrite base method More... | |
double | get (size_t iY, size_t iP) override |
overwrite base method More... | |
Jacobian (size_t ny, size_t np) | |
Constructor. More... | |
void | set (size_t iY, size_t iP, double value) override |
overwrite base method More... | |
void | zero () override |
overwrite base method More... | |
Public Member Functions inherited from Mantid::API::Jacobian | |
virtual double | get (size_t iY, size_t iP)=0 |
Get the value to a Jacobian matrix element. More... | |
virtual void | set (size_t iY, size_t iP, double value)=0 |
Set a value to a Jacobian matrix element. More... | |
virtual void | zero ()=0 |
Zero all matrix elements. More... | |
virtual | ~Jacobian ()=default |
Virtual destructor. More... | |
Private Attributes | |
std::vector< double > | m_data |
Storage for the derivatives. More... | |
size_t | m_np |
Number of parameters in a function (== IFunction::nParams()) More... | |
size_t | m_ny |
Number of data points. More... | |
An implementation of Jacobian using std::vector.
Definition at line 21 of file Jacobian.h.
|
inline |
Constructor.
ny | :: Number of data points |
np | :: Number of parameters |
Definition at line 33 of file Jacobian.h.
References m_data.
|
inlineoverride |
overwrite base method
value | :: the value |
iP | :: the index of the parameter |
runtime_error | Thrown if column of Jacobian to add number to does not exist |
Definition at line 39 of file Jacobian.h.
|
inlineoverridevirtual |
overwrite base method
Implements Mantid::API::Jacobian.
Definition at line 62 of file Jacobian.h.
References m_data.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
overwrite base method
Implements Mantid::API::Jacobian.
Definition at line 72 of file Jacobian.h.
References m_data.
|
private |
Storage for the derivatives.
Definition at line 27 of file Jacobian.h.
|
private |
Number of parameters in a function (== IFunction::nParams())
Definition at line 25 of file Jacobian.h.
|
private |
Number of data points.
Definition at line 23 of file Jacobian.h.