Hi Fabien, it looks interesting. In fact, we could even think about integrating your specialized code into ublas directly. This is something we don't have at all in ublas because the focus is more on standard linear algebra. But we're exploring different options to specialize ublas for specific use cases and 3d computations is a big one. Cheers, David On Wed, Jul 2, 2014 at 3:36 PM, Fabien Picarougne < fabien.picarougne@univ-nantes.fr> wrote:
Hi,
I have developed a generic matrix library with some specialization for 3D operations. I wondering if it would be of interest for me to submit it as a Boost library.
There are some differences compared to the current ublas/matrix class. The dimensions of this matrix are template parameters, this allows to make specializations for particular dimensions and efficiency in some combinations of parameters.
This library takes advantage of some C++11 elements and so requires a C++11 enabled compiler. I have tested it with gcc 4.8.2 and MSVC 2013.
It contains a generic global matrix class (CMat) which can be specialized in a number of matrix (square matrix, vectors, 4x4 matrix.) in order to use more efficient algorithms or adding particular methods. Because I use it in a 3D rendering engine, I have built a specific CMat4x4 class with standard 3D operators on matrix and vectors.
I have posted the current code here: https://bitbucket.org/fpicarougne/template-matrix-library
In order to use all the specializations, include "Matrix/CMat3D.hpp" and take a look to "Matrix.cpp" for an example of usage.
Fabien
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost