BitMagicC++Library
Modules | Data Structures | Functions
Sparse vector

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

Collaboration diagram for Sparse vector:

Modules

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

Data Structures

class  bm::sparse_vector< Val, BV >
 sparse vector with runtime compression using bit transposition method More...
 

Functions

template<class SV >
int bm::sparse_vector_deserialize (SV &sv, const unsigned char *buf, bm::word_t *temp_block=0)
 Deserialize svector<> 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 svector<>

Parameters
sv- target sparse vector
buf- source memory buffer
temp_block- temporary block buffer to avoid re-allocations
Returns
error non-zero codes means failure
Examples:
svsample02.cpp.

Definition at line 232 of file bmsparsevec_serial.h.

References BM_ASSERT, bm::deserialize(), bm::decoder::get_64(), and bm::decoder_base::get_8().

Referenced by main().