Fixing ufunc issue in scale/shift application
Summary
This MR introduces the following changes
- Fixing an issue with the application of the scale/shift values. When different types (float32 for the variable and float64 for the scale/shift value) an error is raised
cannot cast ufung 'subtract' output from dtype('float64') to dtype('float32') with casting rule 'same_kind'
. This is fixed by removing theufunc
-=
and/=
and replace them with the usual longer type.
Tagging @sargyrop