bvec


bvec, a Python code which demonstrates how signed integers can be stored as binary vectors, and arithmetic can be performed on them.

Licensing:

The computer code and data files made available on this web page are distributed under the MIT license

Languages:

bvec is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

ubvec, a Python code which demonstrates how unsigned binary vectors, strings of 0's and 1's, can represent nonnegative integers or subsets or other mathematical objects, for which various arithmetic and logical operations can be defined.

Source Code:


Last revised on 18 January 2020.