8 #include "NewtonDevice.h"
\r
10 Newton::Newton(int w, int h) :
\r
11 variateurEpsilon(IntervalF(0.01, 1), 0.001),
\r
16 ptrDomaineMathInit(new DomaineMath(-2, -2, 2, 2)),
\r
17 title("Fractal Newton")
\r
19 Device::assertDim(dg, db);
\r
24 delete this->ptrDomaineMathInit;
\r
27 void Newton::runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath)
\r
29 newton<<<dg,db>>>(ptrDevPixels, this->w, this->h, domaineMath, 100, this->epsilon);
\r
31 HANDLE_ERROR(cudaDeviceSynchronize()); // Pour flusher les 'printf' (pour le DEBUG).
\r
34 void Newton::animationStep()
\r
36 this->epsilon = this->variateurEpsilon.varierAndGet();
\r
49 DomaineMath* Newton::getDomaineMathInit()
\r
51 return this->ptrDomaineMathInit;
\r
54 float Newton::getT()
\r
56 return this->epsilon;
\r
59 string Newton::getTName()
\r
61 return "epsilon : ";
\r
64 string Newton::getTitle()
\r