BitMagic-C++
svsample05.cpp File Reference

Example: sparse_vector<> used for set 2 set remapping (theory of groups Image) More...

#include <iostream>
#include <vector>
#include "bm.h"
#include "bmsparsevec.h"
#include "bmsparsevec_algo.h"
Include dependency graph for svsample05.cpp:

Go to the source code of this file.

Typedefs

typedef bm::sparse_vector< bm::id_t, bm::bvector<> > sparse_vector_u32
 

Functions

static void print_svector (const sparse_vector_u32 &sv)
 
void print_bvector (const bm::bvector<> &bv)
 
int main (void)
 

Detailed Description

Example: sparse_vector<> used for set 2 set remapping (theory of groups Image)

Definition in file svsample05.cpp.

Typedef Documentation

◆ sparse_vector_u32

Definition at line 44 of file svsample05.cpp.

Function Documentation

◆ main()

◆ print_bvector()

void print_bvector ( const bm::bvector<> & bv)
inline

Definition at line 74 of file svsample05.cpp.

References bm::bvector< Alloc >::count(), and bm::bvector< Alloc >::first().

Referenced by main().

◆ print_svector()

static void print_svector ( const sparse_vector_u32 & sv)
static