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 15:03:40 +0100

Hi Joseph,what about this: I was too quick to reply. It does not work, compiled with icpc -c -std=c++11 -O3 -xHost -DNDEBUG I can’t really explain what is going on. I have tried to walk the accessor (A(i, j)) through the debugger, and it is not straightforward code for the compiler. There is a pointer cast that might disconnect any optimizer. So, I can’t easily provide you with a solution. I was also surprised to see that in debug mode, bounds checking is done with: assert(i >=0 && i < n). This can be optimized into assert(static_cast<std::size_t>(i) < static_cast<std::size_t>(n)). François Fayard Founder & Consultant - Inside Loop |

**Follow-Ups**:**Re: [eigen] Eigen containers cannot be vectorized***From:*Christoph Hertzberg

**Re: [eigen] Eigen containers cannot be vectorized***From:*Joseph Mirabel

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

**Re: [eigen] Eigen containers cannot be vectorized***From:*Joseph Mirabel

**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/ |