Skip to content

Should dot() deal with or reject complex values? #74

@davidcsterratt

Description

@davidcsterratt

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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions