Skip to content

nabu.preproc.shift_cuda

source module nabu.preproc.shift_cuda

Classes

source class CudaVerticalShift(radios_shape, shifts, **cuda_options)

Bases : VerticalShift

Vertical Shifter, Cuda backend.

Methods

  • apply_vertical_shifts Parameters


    radios: 3D pycuda.gpuarray.GPUArray The input radios. If the optional parameter is not given, they are modified in-place iangles: a sequence of integers Must have the same lenght as radios. It contains the index at which the shift is found in self.shifts given by shifts argument in the initialisation of the object. output: 3D pycuda.gpuarray.GPUArray, optional If given, it will be modified to contain the shifted radios. Must be of the same shape of radios.

source method CudaVerticalShift.apply_vertical_shifts(radios, iangles, output=None)

Parameters

radios: 3D pycuda.gpuarray.GPUArray The input radios. If the optional parameter is not given, they are modified in-place iangles: a sequence of integers Must have the same lenght as radios. It contains the index at which the shift is found in self.shifts given by shifts argument in the initialisation of the object. output: 3D pycuda.gpuarray.GPUArray, optional If given, it will be modified to contain the shifted radios. Must be of the same shape of radios.