On Mon, 2 Dec 2013, Gerald Pfeifer wrote:

Only one comment from my side:

Index: doc/extend.texi
===================================================================
+In C++, the ternary operator @code{?:} is available. @code{a?b:c}, where
+@code{b} and @code{c} are vectors of the same type and @code{a} is an
+integer vector of the same size and number of elements as @code{b} and
+@code{c}

Why "same size and number of elements" in the above?  What is the
difference between these two?

(on x86_64)
A vector of 4 int and a vector of 4 long have the same number of elements but not the same size. A vector of 8 int and a vector of 4 long have the same size but not the same number of elements.

For semantics, we want the same number of elements. To match the hardware, we want the same size.

--
Marc Glisse

Reply via email to