I'm using the C++ STD library <complex> and get the error message:
error: no match for ‘operator*’
when trying to evaluate an expression like: exp(a*b*c) with a, b, c complex and real numbers.
It says in the <complex> library the operator for multiplication "*" is already overloaded, so I thought I could use it right away.
Any ideas?
Copyright © 2024 1QUIZZ.COM - All rights reserved.
Answers & Comments
Verified answer
The <complex> library does not define an operator* for complex numbers. It does define operator*=, maybe you could use that.