-
Notifications
You must be signed in to change notification settings - Fork 2
Description
https://github.com/jump-dev/MutableArithmetics.jl
This (hopefully) will make it very easy to handle temporaries and increase speed
After a while of trying to learn the very not well documented API for this interface, I found this only works for simple arithmetic (+,-,*,/) and no other functions, therefore I think it we will have to write our own temporary management. One idea I have is to have a macro
@usetempswhich appends some symbol to each of the operators ( similar to @. ) and converts the product of the expression to heap allocated TPS or ComplexTPS. Those special operators with appended symbols return temporary types which have special behaviors / avoid heap allocation if possible. If a temporary is included in the evaluation, it can be reused or mutated.
Originally posted by @mattsignorelli in #46 (comment)
It's not true that MA "only works for simple arithmetic", MA works for arbitrary functions. If you have questions I'd be happy to help.