summaryrefslogtreecommitdiffstats
path: root/cuda/2d/sart.h
diff options
context:
space:
mode:
Diffstat (limited to 'cuda/2d/sart.h')
-rw-r--r--cuda/2d/sart.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cuda/2d/sart.h b/cuda/2d/sart.h
index 7dcd641..eff9ecf 100644
--- a/cuda/2d/sart.h
+++ b/cuda/2d/sart.h
@@ -50,6 +50,8 @@ public:
virtual float computeDiffNorm();
+ void setRelaxation(float r) { fRelaxation = r; }
+
protected:
void reset();
bool precomputeWeights();
@@ -78,6 +80,8 @@ protected:
// Geometry-specific precomputed data
float* D_lineWeight;
unsigned int linePitch;
+
+ float fRelaxation;
};
}