geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Should dot() deal with or reject complex values?

Open davidcsterratt opened this issue 5 months ago • 0 comments

I've had an email saying that there might be a bug in geometry, since the dot product will accept complex vectors, but doesn't compute the project correctly, as shown here: https://www.geeksforgeeks.org/dot-product-of-vectors-in-r-programming/

I think that geometry should detect complex number arguments and then either reject them (on the basis that the package is designed for real numbers), or accept them, and return the correct dot product for complex numbers.

I regard this as an enhancement.

davidcsterratt avatar Aug 31 '24 16:08 davidcsterratt