Closed darioizzo closed 4 years ago
Note that if, instead, we write:
xv = gdualv([1.1, 1.1], "x", 2)
yv = gdualv([2.1, 2.1], "y", 2)
the result stands correct:
In [4]: f(xv, yv)
Out[4]: [-1.21, -1.21]*dy+[2.31, 2.31]+[1.21, 1.21]*dy**2+[4.41, 4.41]*dx**2+[-4.62, -4.62]*dx*dy+[4.41, 4.41]*dx
will close this as #58 has fixed it implementing a new logic for fma3
computations made by the vectorized type seem to be weirdly off in some cases:
note that the vectorized type has the x=1.1, y=2.1 point and thus it should be computing the same values of the non vectorized type in its second component.
then:
note that the mixed coefficient
dx*dy
is4.62
but ...note that the mixed coefficient
dx*dy
is[-2200, -220]
, while its second component should be4.62
. the mistake is not always there, it depends also from the value of the other coefficients!