Open
Description
In the implementation of complex, the Add, Sub, etc. for references are forwarded via clone() for values. This is very bad for types which are expensive to copy. In my example, I use Complex<Ratio<BigInt>>
.
Can the code be refactored in such a way, that no clone()
is necessary? I guess the different arithmetic operations have to be coded out and not forwarded.
I could try that, if there is no objection against that ...
Metadata
Metadata
Assignees
Labels
No labels