float vector to binary integer vector transformation preserving dot product

86 Views Asked by At

Is there a transformation of a set of float vectors to a set of binary integer vectors that preserves the dot product. I found conformal transformations but I'm interested in large vectors (size 300) while they are mainly for the complex domain.

1

There are 1 best solutions below

0
On

No. The dot product of float vectors can be fractional, but the dot product of integers is always an integer. You can certainly just scale up the floats to just before you overflow ints and round to get pretty close.