Closed mbhall88 closed 2 years ago
The hamming distance function is vectorized, so any custom compare functions would need a custom SIMD implementation. I guess the scalar version can be made to support generic comparison functions, but then it wouldn't make too much sense given that this library is mainly focused on vectorized distance algorithms.
Ahh I see. No worries, thought I'd ask just in case. Thanks.
Forgive me if this is a silly question, but do you think it would be possible to provide an alternate hamming distance function that can take a custom comparison function?
For instance, in bioinformatics, if I want the hamming distance between two sequences, but I want to ignore
N
s.For example