Comments (4)
No problem! I'm glad that did the trick.
It's not super obvious and it's also not explicitly documented anywhere. That said, pretty much every function in this library has a unit test that demonstrates how it works so they might be a useful reference if you run into any more compiler errors. In this case the corresponding test is here:
BasicLinearAlgebra/test/test_arithmetic.cpp
Line 106 in 782afce
Hope that helps! Good luck with your project!
from basiclinearalgebra.
Hey @aloysiousBenoy , I'm pretty sure that line will compile if you modify it like so:
k_process_noise = k_intermediate * 10.0f;
The problem is that you're using an integer datatype for the multiplier whereas BLA::Matrix
s expect a multiplier of the same type as their elements, which by default is float.
Hope that helps! Let me know if you have any more trouble
from basiclinearalgebra.
That solved the issue !! Thanks a lot !
Is this documented/ mentioned somewhere or is this a very obvious thing?
from basiclinearalgebra.
I guess my recent opened issue has to do with this as well. Somehow, v3.7.0 may have been doing implicit type casting which I guess is dangerous? Wouldn't it default to the type of the left-hand-side being assigned to (i.e. casting to higher resolution should be allowed)?
In our case, it seems that casting int -> float should be permissible (and indeed it is in v 3.7.0).
from basiclinearalgebra.
Related Issues (20)
- Custom matrix diagonal values HOT 1
- Delete a matrix instace HOT 1
- Inverse Matrix 3x3 false HOT 2
- Sparse matrix HOT 2
- A 3D pose representation to work with the basicLinearAlgebra library HOT 3
- Implementing a "ones" matrix
- numerically differentiating vector valued functions HOT 2
- Note that the F matrix in the example clashes with the F() macro HOT 1
- Code-breaking updates in 4.0.0 HOT 3
- problem on Invert matrix<1, 1> HOT 3
- Error using CMake -- multiple definitions of "Serial" HOT 4
- works in 3.7 broken in 4.0/4.1 HOT 3
- Eye() behaves like Ones() when doing math HOT 2
- Integer Matrices gives wrong answers HOT 1
- Not compatible with Streaming library HOT 2
- Doesn't Compile on Native HOT 2
- template instantiation depth exceeds maximum of 900 HOT 1
- Doesn't compile for ESP32 Dev Board HOT 12
- Doesn't compile for ESP32 Dev Board HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basiclinearalgebra.