geometry
geometry copied to clipboard
Should dot() deal with or reject complex values?
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.