Closed bobthefairycat closed 1 year ago
Hey @bobthefairycat , thanks for the information! I guess in my update to 4.0.0 I missed the unary operator-
, I'll push a change for that in a moment.
As for the implicit casting from float to double that you pointed out, the cause is as you discovered on #64. It wasn't explicitly intended to disable these implicit casts in 4.0.0 but at the same time they're kind of notorious for being bug prone so I think it might be for the best that it's flagged as an error.
FWIW you can also use the Cast<T>
to convert a Matrix
it into a different datatype for example:
double y = 1.0;
Matrix<2,1, double> tmp = z_hat.Cast<double>() - y;
Ok, I reinstated the operator- with version 4.1. Let me know if you have any more trouble!
I appreciate the effort to fix the bug! To be "safe", I packaged out the project with instructions to use 3.7.0 (use case is educational in a very limited setting, so unlikely that the oversights allowed will be problematic).
Thanks again!
Hi there, my Arduino code compiles and runs, working as expected, using v3.7.0 of BLA, but updating to v4.0.0 breaks it. Here is a truncated example of my code that compiles fine on v3.7.0 but fails on v4.0.0
The following I would expect to work as negation:
[EDIT] The following error makes sense as this would cast y down to a lower resolution. Strange however that it throws an error in 4.0.0 and not in 3.7.0 And the following, which I can "fix" by changing the declaration of
y
to be afloat
: