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:27:22 +0100

On 2016-12-08 15:03, Francois Fayard wrote: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)). No compiler cannot do that as the optimization from the first _expression_ to the second one is only valid when n is nonnegative. François Fayard Founder & Consultant - Inside Loop |

**Follow-Ups**:**Re: [eigen] Eigen containers cannot be vectorized***From:*Benoit Jacob

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

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

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

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

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