libkpl
6.0
A Library for Graphical Presentation of Data Sets and Functions
|
Calculation job class. More...
#include <calcjob.h>
Public Member Functions | |
CalcJob (const double *x, double *values, double(*func)(double, const double *), const double *par, int n) | |
Constructor. | |
~CalcJob () | |
Destructor. | |
Protected Member Functions | |
void | run (ThreadWeaver::JobPointer, ThreadWeaver::Thread *) override |
Calculates function values. | |
Protected Attributes | |
const double * | m_t |
const double * | m_par |
double * | m_values |
double(* | m_func )(double, const double *) |
int | m_n |
Calculation job class.
Class for calculation of function value tables by multithreading.
CalcJob::CalcJob | ( | const double * | x, |
double * | values, | ||
double(* | func )(double, const double *), | ||
const double * | par, | ||
int | n ) |
Constructor.
x | array with argument values. |
values | array for function values. |
func | function. |
par | parameter array. |
n | number of values. |