Re: [eigen] Eigen containers cannot be vectorized |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Eigen containers cannot be vectorized*From*: Francois Fayard <fayard@xxxxxxxxxxxxx>*Date*: Thu, 8 Dec 2016 14:44:31 +0100

It is indeed an aliasing problem. But the restrict keyword won’t help here. It has been designed for C, not for C++. There is some discussion on integrating a “restrict" keyword in C++ that works well with struct, but it is not there yet (not even in C++17). Storing the size of the matrix as a pointer is the best way I know on doing it. For instance, compilers can vectorize std::vector because they do not store their size as an integer, but as a pointer. François Fayard
Founder & Consultant - Inside Loop |

**Follow-Ups**:**Re: [eigen] Eigen containers cannot be vectorized***From:*Matthieu Brucher

**References**:**[eigen] Eigen containers cannot be vectorized***From:*Francois Fayard

**RE: [eigen] Eigen containers cannot be vectorized***From:*Daniel.Vollmer

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Eigen containers cannot be vectorized** - Next by Date:
**Re: [eigen] Eigen containers cannot be vectorized** - Previous by thread:
**RE: [eigen] Eigen containers cannot be vectorized** - Next by thread:
**Re: [eigen] Eigen containers cannot be vectorized**

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