roystgnr / MetaPhysicL

Metaprogramming and operator-overloaded classes for numerical simulations
Other
22 stars 12 forks source link

Add some assignment overloads for DualNumber #33

Closed lindsayad closed 5 years ago

lindsayad commented 5 years ago

This avoids calling conversion constructors

roystgnr commented 5 years ago

Huh. Not sure how I missed that. I guess I figured the conversion constructor work would be optimized away since it's all inline and all simple? But I suppose even if that's the case for P.O.D. T/T2/D/D2, there's no telling what crazy classes people might want to wrap as well. Thanks!

lindsayad commented 5 years ago

@roystgnr Can we bootstrap this so I can submit an update to libmesh?