diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2014-05-02 09:20:54 +0000 |
---|---|---|
committer | wpalenst <Willem.Jan.Palenstijn@cwi.nl> | 2014-05-02 09:20:54 +0000 |
commit | 1dd79f23f783564719a52de7d9b54b17005c32d7 (patch) | |
tree | 71e3c59863680e9da29a51359786d24c68787f1a /cuda/3d/arith3d.cu | |
parent | 9dd746071621cf854171b985afbf375f19a5b726 (diff) | |
download | astra-1dd79f23f783564719a52de7d9b54b17005c32d7.tar.gz astra-1dd79f23f783564719a52de7d9b54b17005c32d7.tar.bz2 astra-1dd79f23f783564719a52de7d9b54b17005c32d7.tar.xz astra-1dd79f23f783564719a52de7d9b54b17005c32d7.zip |
Add SIRT-Weighted BP3D (par3d-only) for use in large BP
Diffstat (limited to 'cuda/3d/arith3d.cu')
-rw-r--r-- | cuda/3d/arith3d.cu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cuda/3d/arith3d.cu b/cuda/3d/arith3d.cu index 7cb56f6..cc96da5 100644 --- a/cuda/3d/arith3d.cu +++ b/cuda/3d/arith3d.cu @@ -52,6 +52,11 @@ struct opAddMul { out += in1 * in2; } }; +struct opAdd { + __device__ void operator()(float& out, const float in) { + out += in; + } +}; struct opMul { __device__ void operator()(float& out, const float in) { out *= in; @@ -594,6 +599,7 @@ INST_DDFtoD(opAddMulScaled) INST_DDtoD(opAddMul) INST_DDtoD(opMul2) INST_DtoD(opMul) +INST_DtoD(opAdd) INST_DtoD(opDividedBy) INST_toD(opInvert) INST_FtoD(opSet) |