Vectors: allow seamless interaction with scalar types

Create issue
Issue #2216 closed
Roland Haas created an issue
  • Vectors: allow implicit cast from scalar_t
  • Vectors: provide binary operations with scalars

one needs both

operatorX(T, vectype<T>)


operatorX(vectype<T>, T)

for both commuting and non-commuting operators

Pull request is here:

Keyword: Vectors

Comments (6)

  1. Erik Schnetter
    • removed comment

    I see you define operators for + and *. What about subtraction and division?

  2. Log in to comment