swift-numerics icon indicating copy to clipboard operation
swift-numerics copied to clipboard

Is it desirable to have heterogeneous complex/real operators?

Open stephentyrone opened this issue 5 years ago • 0 comments

I never had heterogeneous real-complex addition or subtraction, and I've removed the multiply and division operators because of type-inference issues discussed in the README. This is a minor inconvenience for some use cases, and we should investigate ways in which we could make them available--especially multiplication and division, which

  • are used more frequently because of the natural interpretation of C as vector space over R
  • would allow us to elide a lot of spurious arithmetic operations an get some perf wins

stephentyrone avatar Jul 02 '19 16:07 stephentyrone