C++ boost ublas + units dimension constraints -
I am seeking advice on design / general thinking that the compulsions of matrix dimension on matrix matrix / vector how possibly the use of Boost units Can do
For example, in the Matrix A, the time x is the dimension of the force (for example)
Have you done something like this or do you have some good ideas about organizing such obstacles?
I have gone through the ublas archives, there are some discussions, but some are not concrete.
Thanks
Check out this good boost tutorial which is using template-metaprogramming Introducing the dimensional analysis capability:
For this, you will need to create a complete set of template specialists for every dimension in your app, but the result is worth it - it gives you mistakes Will not allow to create or add ambiguity in dimensions.
Comments
Post a Comment