BitMagic-C++
Modules | Functions
Sparse and compressed vectors

Sparse vector for integer types using bit transposition transform. More...

Collaboration diagram for Sparse and compressed vectors:

Modules

 Sparse vector algorithms
 Sparse vector algorithms.
 
 Sparse vector serialization
 Sparse vector serialization.
 

Functions

template<class SV >
int bm::sparse_vector_deserialize (SV &sv, const unsigned char *buf, bm::word_t *temp_block=0)
 Deserialize sparse vector. More...
 

Detailed Description

Sparse vector for integer types using bit transposition transform.

Function Documentation

◆ sparse_vector_deserialize()

template<class SV >
int bm::sparse_vector_deserialize ( SV &  sv,
const unsigned char *  buf,
bm::word_t temp_block = 0 
)

Deserialize sparse vector.

Parameters
sv- target sparse vector
buf- source memory buffer
temp_block- temporary block buffer to avoid re-allocations
Returns
0 (error processing via std::logic_error)
Examples:
rscsample01.cpp, and svsample02.cpp.

Definition at line 244 of file bmsparsevec_serial.h.

References bm::sparse_vector_deserializer< SV >::deserialize().

Referenced by main().