The current double subtraction operator appears to be broken:
|
/** Subtraction */ |
|
Complex operator-(double x, const Complex &z) |
|
{ |
|
return z - x; |
|
} |
For example, the division operator below is:
|
/** Division */ |
|
Complex operator/(double x, const Complex &z) |
|
{ |
|
return Complex(x) / z; |
|
} |
Presumably the correct implementation should be:
The current double subtraction operator appears to be broken:
sire/corelib/src/libs/SireMaths/complex.cpp
Lines 396 to 400 in a165d42
For example, the division operator below is:
sire/corelib/src/libs/SireMaths/complex.cpp
Lines 408 to 412 in a165d42
Presumably the correct implementation should be:
return Complex(x) - z;