Re: [eigen] Matrix2i mean |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Matrix2i mean*From*: Peter <list@xxxxxxxxxxxxxxxxx>*Date*: Tue, 5 Nov 2019 16:36:11 +0100

Dear Janos, Am 05.11.19 um 16:25 schrieb Janos Meny:

You are dividing by 2, which is an int, so by integral promotion your result will also be an int which can comfortably hold the value you are computing. See

yes, I overlooked that one. But even if you replace it by a int16_t Two, it doesn't overflow.

https://www.godbolt.org/z/1hliL6

Sadly, I'm not familiar with the intel assembler. Best regards, Peter

**References**:**[eigen] Matrix2i mean***From:*Petr Kubánek

**Re: [eigen] Matrix2i mean***From:*Peter

**Re: [eigen] Matrix2i mean***From:*Christoph Hertzberg

**Re: [eigen] Matrix2i mean***From:*Peter

**Re: [eigen] Matrix2i mean***From:*Janos Meny

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Matrix2i mean** - Next by Date:
**Re: [eigen] Matrix2i mean** - Previous by thread:
**Re: [eigen] Matrix2i mean** - Next by thread:
**Re: [eigen] Matrix2i mean**

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