Mantid
Loading...
Searching...
No Matches
IFunctionGeneral.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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 +
7#pragma once
8
9#include "MantidAPI/DllConfig.h"
10
12#include "MantidAPI/IFunction.h"
13
14namespace Mantid {
15namespace API {
16
25class MANTID_API_DLL IFunctionGeneral : public virtual IFunction {
26public:
27 void function(const FunctionDomain &domain, FunctionValues &values) const override;
28 void functionDeriv(const FunctionDomain &domain, Jacobian &jacobian) override;
29
30 size_t getValuesSize(const FunctionDomain &domain) const override;
31
34 virtual void functionGeneral(const FunctionDomainGeneral &domain, FunctionValues &values) const = 0;
35
39 virtual size_t getNumberDomainColumns() const = 0;
40
42 virtual size_t getNumberValuesPerArgument() const = 0;
43
49 virtual size_t getDefaultDomainSize() const;
50};
51
52} // namespace API
53} // namespace Mantid
Represent a domain of a very general type.
Base class that represents the domain of a function.
A class to store values calculated by a function.
IFunctionGeneral: a very general function definition.
virtual size_t getNumberDomainColumns() const =0
Get number of columns that the domain must have.
virtual void functionGeneral(const FunctionDomainGeneral &domain, FunctionValues &values) const =0
Provide a concrete function in an implementation that operates on a FunctionDomainGeneral.
virtual size_t getNumberValuesPerArgument() const =0
Get number of values per argument in the domain.
This is an interface to a fitting function - a semi-abstarct class.
Definition IFunction.h:167
Represents the Jacobian in IFitFunction::functionDeriv.
Definition Jacobian.h:22
Helper class which provides the Collimation Length for SANS instruments.