Skip to content

pckben/packvector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A library to pack non-standard size numbers into a vector of normal numbers.

Eg. Store an array of 5-bit integers into a vector of 64-bit integers. The idea is to compactly represent 20 different types of AminoAcids as 5-bit integers for sending to GPU clusters (memory limited) to process

main.cc is for unit test using GoogleTest. Must configure GTEST variable in Makefile, then make to compile and run the test.

Usage:

Protein p;
p.push(1);
p.push(2);
p.set(0, 10);
cout << p.get(0);  // 10

About

pack n-bit integer array in a m-bit integer vector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages