I guess you don’t know about MutableArithmetics.jl? You probably want to implement certain MA methods for MyStruct, and then use MA for efficient operations on MyStruct.
I guess you don’t know about MutableArithmetics.jl? You probably want to implement certain MA methods for MyStruct, and then use MA for efficient operations on MyStruct.