Go to the documentation of this file.
10 #ifndef vtk_m_worklet_zfp_encode1_h
11 #define vtk_m_worklet_zfp_encode1_h
32 template <
typename Scalar,
typename PortalType>
34 const PortalType& scalars,
40 for (x = 0; x < nx; x++, offset += sx)
41 q[x] = scalars.Get(offset);
45 template <
typename Scalar,
typename PortalType>
50 for (
vtkm::Id x = 0; x < 4; x++, offset += sx)
52 fblock[counter] = scalars.Get(offset);
75 template <
class InputScalarPortal,
typename BitstreamPortal>
77 const InputScalarPortal& scalars,
78 BitstreamPortal& stream)
const
80 using Scalar =
typename InputScalarPortal::ValueType;
87 Scalar fblock[BlockSize];
90 if (logicalStart + 4 >
Dims)
101 Gather1(fblock, scalars, logicalStart, 1);
Definition: ZFPEncode.h:314
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC void operator()(const vtkm::Id blockIdx, const InputScalarPortal &scalars, BitstreamPortal &stream) const
Definition: ZFPEncode1.h:76
Encode1(const vtkm::Id dims, const vtkm::Id paddedDims, const vtkm::UInt32 maxbits)
Definition: ZFPEncode1.h:66
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC void GatherPartial1(Scalar *q, const PortalType &scalars, vtkm::Id offset, int nx, int sx)
Definition: ZFPEncode1.h:33
void(FieldIn, WholeArrayIn, AtomicArrayInOut bitstream) ControlSignature
Definition: ZFPEncode1.h:73
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC void Gather1(Scalar *fblock, const PortalType &scalars, vtkm::Id offset, int sx)
Definition: ZFPEncode1.h:46
VTKM_EXEC void PadBlock(Scalar *p, vtkm::UInt32 n, vtkm::UInt32 s)
Definition: ZFPEncode.h:27
vtkm::UInt32 MaxBits
Definition: ZFPEncode1.h:63
uint32_t UInt32
Definition: Types.h:161
vtkm::Id Dims
Definition: ZFPEncode1.h:60
int32_t Int32
Definition: Types.h:160
vtkm::Id PaddedDims
Definition: ZFPEncode1.h:61
Definition: ZFPEncode1.h:57
vtkm::Id ZFPDims
Definition: ZFPEncode1.h:62
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38