-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent inner product with complex-valued tuples #20
Comments
Basically the question is: why is In fact, when the complex numbers are considered as a 2D real space, then the current result does make sense (you can't apply linearity That's quite silly if you ask me. It certainly precludes many relevant applications, from DSP to quantum mechanics. Hence I'd propose to change the instance to
Of course one might now object that This could perhaps be adressed with a separate class
|
That was exactly my conclusion, we do need a separate associated typefamily, independent of the I'd change the definition of
|
^ no, the default definition of Edit: (that |
https://github.com/conal/vector-space/blob/master/src/Data/VectorSpace.hs#L145 defines
(u,v) <.> (u',v') = (u <.> u') ^+^ (v <.> v')
, but(1, j) <.> (j, 1)
should be2 j
, rather than0
.The text was updated successfully, but these errors were encountered: