Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMathToolbox::KisFloatRepresentation Struct Reference

#include <kis_math_toolbox.h>

Public Member Functions

 KisFloatRepresentation (uint nsize, uint ndepth)
 
 ~KisFloatRepresentation ()
 

Public Attributes

float * coeffs
 
uint depth
 
uint size
 

Detailed Description

Definition at line 39 of file kis_math_toolbox.h.

Constructor & Destructor Documentation

◆ KisFloatRepresentation()

KisMathToolbox::KisFloatRepresentation::KisFloatRepresentation ( uint nsize,
uint ndepth )
inline

Definition at line 41 of file kis_math_toolbox.h.

42 : coeffs(new float[nsize*nsize*ndepth])
43 , size(nsize)
44 , depth(ndepth) {
45 // XXX: Valgrind shows that these are being used without being initialised.
46 for (quint32 i = 0; i < nsize * nsize * ndepth; ++i) {
47 coeffs[i] = 0;
48 }
49 }

◆ ~KisFloatRepresentation()

KisMathToolbox::KisFloatRepresentation::~KisFloatRepresentation ( )
inline

Definition at line 51 of file kis_math_toolbox.h.

51 {
52 if (coeffs) delete[] coeffs;
53 }

Member Data Documentation

◆ coeffs

float* KisMathToolbox::KisFloatRepresentation::coeffs

Definition at line 55 of file kis_math_toolbox.h.

◆ depth

uint KisMathToolbox::KisFloatRepresentation::depth

Definition at line 57 of file kis_math_toolbox.h.

◆ size

uint KisMathToolbox::KisFloatRepresentation::size

Definition at line 56 of file kis_math_toolbox.h.


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