This implementation doesn't handle when a and b are of different types
def _normalised_cc_complex_1d(a: torch.Tensor, b: torch.Tensor):
> correlation = torch.dot(a, torch.conj(b))
E RuntimeError: dot : expected both vectors to have same dtype, but found ComplexDouble and ComplexFloat
ideally this would be smart and aware of relative precisions of difference types but doesn't matter in the first instance
@sjrothfuss or @milesagraham maybe you'd like to take this on? no pressure of course, just let me know if you're planning to work on it
This implementation doesn't handle when
a
andb
are of different typesideally this would be smart and aware of relative precisions of difference types but doesn't matter in the first instance
@sjrothfuss or @milesagraham maybe you'd like to take this on? no pressure of course, just let me know if you're planning to work on it