Takes in a binary matrix X, whose transpose t(X) has N rows, and computes a vector recording all N choose 2 pairwise Hamming distances of t(X), ordered lexicographically.
hamming_bitwise(X)
binary matrix (IntegerMatrix class )
vector of Hamming distances (NumericVector class)
# t(X) = [[1,0], [0,1], [1,1]] --> output = [2,1,1]