Skip to content
pack n-bit integer array in a m-bit integer vector
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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 is for unit test using GoogleTest. Must configure GTEST variable in Makefile, then make to compile and run the test.


Protein p;
p.set(0, 10);
cout << p.get(0);  // 10
Something went wrong with that request. Please try again.