BitMagicC++Library
Functions
Sparse vector algorithms

Sparse vector algorithms. More...

Collaboration diagram for Sparse vector algorithms:

Functions

template<class SV >
void bm::dynamic_range_clip_high (SV &svect, unsigned high_bit)
 Clip dynamic range for signal higher than specified. More...
 
template<class SV >
void bm::dynamic_range_clip_low (SV &svect, unsigned low_bit)
 Clip dynamic range for signal lower than specified (boost) More...
 
template<class SV >
void bm::compute_nonzero_bvector (const SV &svect, typename SV::bvector_type &bvect)
 Compute bit-vector of non-zero elements. More...
 

Detailed Description

Sparse vector algorithms.

Function Documentation

◆ compute_nonzero_bvector()

template<class SV >
void bm::compute_nonzero_bvector ( const SV &  svect,
typename SV::bvector_type &  bvect 
)

Compute bit-vector of non-zero elements.

Parameters
svect- input sparse vector to compute non-zero elements
bvect- output bit-bector of non-zero elements

Output vector is computed as a logical OR (join) of all plains

Definition at line 139 of file bmsparsevec_algo.h.

◆ dynamic_range_clip_high()

template<class SV >
void bm::dynamic_range_clip_high ( SV &  svect,
unsigned  high_bit 
)

Clip dynamic range for signal higher than specified.

Parameters
svect- sparse vector to do clipping
high_bit- max bit (inclusive) allowed for this signal vector
See also
dynamic_range_clip_low

Definition at line 44 of file bmsparsevec_algo.h.

References BM_ASSERT.

◆ dynamic_range_clip_low()

template<class SV >
void bm::dynamic_range_clip_low ( SV &  svect,
unsigned  low_bit 
)

Clip dynamic range for signal lower than specified (boost)

Parameters
svect- sparse vector to do clipping
low_bit- low bit (inclusive) allowed for this signal vector
See also
dynamic_range_clip_high

Definition at line 85 of file bmsparsevec_algo.h.

References BM_ASSERT.