• Marius Wachtler's avatar
    compvar: add int <op> float handling · 15541f28
    Marius Wachtler authored
    Convert the integer to a float and then let the float code handle the operation
    With this change the type analysis is also able to comprehend that
    e.g. '1 - <float>' will return a float
    
    This means that the math operations in the 'linear_combination' function in chaos.py
    get completely inlined.
    
    improves chaos.py by 5%
    15541f28
compvars.cpp 90.8 KB