apple / swift-numerics

Advanced mathematical types and functions for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it desirable to have heterogeneous complex/real operators?

stephentyrone opened this issue · 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