"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/calc3djob.cpp" between
kpl-4.1.tar.gz and kpl-5.0.tar.gz

About: Kpl is a KDE program for two- and three-dimensional graphical presentation (plots) of data sets and functions. Multidimensional nonlinear parameter and general linear least square parameter fits can be performed.

calc3djob.cpp  (kpl-4.1):calc3djob.cpp  (kpl-5.0)
// //
// C++ Implementation: calc3djob // C++ Implementation: calc3djob
// //
// Description: // Description:
// //
// //
// Author: Werner Stille <stille@uni-freiburg.de>, (C) 2015 // Author: Werner Stille <kpl@werner-stille.de>, (C) 2017
// //
// Copyright: See COPYING file that comes with this distribution // Copyright: See COPYING file that comes with this distribution
// //
// //
#include "calc3djob.h" #include "calc3djob.h"
Calc3DJob::Calc3DJob(const double* x, const double* z, double** values, Calc3DJob::Calc3DJob(const double* x, const double* z, double** values,
double (*func)(double, double, const double*), double (*func)(double, double, const double*),
const double* par, int ix0, int nx, int nz, const double* par, int ix0, int nx, int nz) :
QObject* parent) : CalcJob(z, 0, 0, par, nz), m_x(x), m_values3D(values), m_func3D(func),
CalcJob(z, 0, 0, par, nz, parent), m_x(x), m_values3D(values), m_func3D(func),
m_nx(nx), m_ix0(ix0) m_nx(nx), m_ix0(ix0)
{ {
} }
Calc3DJob::~Calc3DJob() Calc3DJob::~Calc3DJob()
{ {
} }
void Calc3DJob::run() void Calc3DJob::run(ThreadWeaver::JobPointer, ThreadWeaver::Thread*)
{ {
for (int i = 0; i < m_nx; ++i) { for (int i = 0; i < m_nx; ++i) {
int ix = m_ix0 + i; int ix = m_ix0 + i;
for (int iz = 0; iz < m_n; ++iz) for (int iz = 0; iz < m_n; ++iz)
m_values3D[ix][iz] = ((*m_func3D)(m_x[ix], m_t[iz], m_par)); m_values3D[ix][iz] = ((*m_func3D)(m_x[ix], m_t[iz], m_par));
} }
} }
 End of changes. 3 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS