Re: [eigen] [Pool] Problems using Boost.Pool with the Eigen matrix library

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On 14.10.2010 21:28, lfrfly@xxxxxxxxxxx wrote:
> Since Eigen matrices and vectors use SSE and therefore require a
> particular alignment, Eigen requires that when these types
> (specifically, the compile-time sized versions) are within a struct or
> class, that struct be given the EIGEN_MAKE_ALIGNED_OPERATOR_NEW macro.
> 
> But here's the problem. What if that struct is allocated by a
> boost::pool_allocator<T>? Is there any way to enforce alignment then?

I didn't try, but does this work?
  boost::pool_allocator<T, Eigen::aligned_allocator<T> >

Christoph

-- 
----------------------------------------------
Dipl.-Inf. Christoph Hertzberg
Cartesium 0.051
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: (+49) 421-218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/