Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::zfparray< Real, Dim > Class Template Reference

#include <zfparray_impl.hpp>

Public Member Functions

constexpr zfparray ()=default
constexpr zfparray (size_t n, double rate)
constexpr zfparray (size_t n, double rate, const Real *src)
constexpr zfparray (const zfparray &other)
constexpr zfparray (zfparray &&other) noexcept
constexpr zfparray & operator= (const zfparray &other)
constexpr zfparray & operator= (zfparray &&other) noexcept
constexpr ~zfparray ()=default
constexpr Real operator() (size_t i) const
constexpr void set (size_t i, Real val)
constexpr void compress (const Real *src)
constexpr void decompress (Real *dst) const
constexpr size_t size () const
constexpr size_t num_blocks () const
constexpr double rate () const
constexpr size_t bytes_per_block () const
constexpr size_t compressed_bytes () const
constexpr double compression_ratio () const
constexpr void flush () const
constexpr void clear_cache () const
constexpr void resize (size_t n)
constexpr void set_rate (double rate)
constexpr const uint8_t * data () const
constexpr size_t data_size () const

Static Public Attributes

static constexpr size_t BLOCK_SIZE = zfp_block_size<Dim>::value
static constexpr size_t MAX_BYTES = zfp_max_bytes<Real, Dim>::value

Constructor & Destructor Documentation

◆ zfparray() [1/5]

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::zfparray ( )
constexprdefault

◆ zfparray() [2/5]

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::zfparray ( size_t n,
double rate )
inlineconstexpr

◆ zfparray() [3/5]

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::zfparray ( size_t n,
double rate,
const Real * src )
inlineconstexpr

◆ zfparray() [4/5]

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::zfparray ( const zfparray< Real, Dim > & other)
inlineconstexpr

◆ zfparray() [5/5]

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::zfparray ( zfparray< Real, Dim > && other)
inlineconstexprnoexcept

◆ ~zfparray()

template<typename Real, unsigned Dim>
sw::universal::zfparray< Real, Dim >::~zfparray ( )
constexprdefault

Member Function Documentation

◆ bytes_per_block()

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::bytes_per_block ( ) const
inlineconstexpr

◆ clear_cache()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::clear_cache ( ) const
inlineconstexpr

◆ compress()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::compress ( const Real * src)
inlineconstexpr

◆ compressed_bytes()

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::compressed_bytes ( ) const
inlineconstexpr

◆ compression_ratio()

template<typename Real, unsigned Dim>
double sw::universal::zfparray< Real, Dim >::compression_ratio ( ) const
inlineconstexpr

◆ data()

template<typename Real, unsigned Dim>
const uint8_t * sw::universal::zfparray< Real, Dim >::data ( ) const
inlineconstexpr

◆ data_size()

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::data_size ( ) const
inlineconstexpr

◆ decompress()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::decompress ( Real * dst) const
inlineconstexpr

◆ flush()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::flush ( ) const
inlineconstexpr

◆ num_blocks()

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::num_blocks ( ) const
inlineconstexpr

◆ operator()()

template<typename Real, unsigned Dim>
Real sw::universal::zfparray< Real, Dim >::operator() ( size_t i) const
inlineconstexpr

◆ operator=() [1/2]

template<typename Real, unsigned Dim>
zfparray & sw::universal::zfparray< Real, Dim >::operator= ( const zfparray< Real, Dim > & other)
inlineconstexpr

◆ operator=() [2/2]

template<typename Real, unsigned Dim>
zfparray & sw::universal::zfparray< Real, Dim >::operator= ( zfparray< Real, Dim > && other)
inlineconstexprnoexcept

◆ rate()

template<typename Real, unsigned Dim>
double sw::universal::zfparray< Real, Dim >::rate ( ) const
inlineconstexpr

◆ resize()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::resize ( size_t n)
inlineconstexpr

◆ set()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::set ( size_t i,
Real val )
inlineconstexpr

◆ set_rate()

template<typename Real, unsigned Dim>
void sw::universal::zfparray< Real, Dim >::set_rate ( double rate)
inlineconstexpr

◆ size()

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::size ( ) const
inlineconstexpr

Member Data Documentation

◆ BLOCK_SIZE

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::BLOCK_SIZE = zfp_block_size<Dim>::value
staticconstexpr

◆ MAX_BYTES

template<typename Real, unsigned Dim>
size_t sw::universal::zfparray< Real, Dim >::MAX_BYTES = zfp_max_bytes<Real, Dim>::value
staticconstexpr

The documentation for this class was generated from the following files:
  • /home/runner/work/universal/universal/include/sw/universal/number/zfpblock/zfparray_fwd.hpp
  • /home/runner/work/universal/universal/include/sw/universal/number/zfpblock/zfparray_impl.hpp