libkpl  6.0
A Library for Graphical Presentation of Data Sets and Functions
CalcJob Class Reference

Calculation job class. More...

#include <calcjob.h>

Inheritance diagram for CalcJob:

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
 

Detailed Description

Calculation job class.

Class for calculation of function value tables by multithreading.

Author
Werner Stille

Constructor & Destructor Documentation

◆ CalcJob()

CalcJob::CalcJob ( const double * x,
double * values,
double(* func )(double, const double *),
const double * par,
int n )

Constructor.

Parameters
xarray with argument values.
valuesarray for function values.
funcfunction.
parparameter array.
nnumber of values.

The documentation for this class was generated from the following file: