Testing vectors for equality

Hello,

I’ve read through the 1.1 standard, but I can’t find a good way to test two vectors for equality. For example, if x and y are char16s, I can’t use if(x == y) because the “==” operator returns a char16.

I thought the any and all functions might help, but they only count the MSBs of the input vectors.

Any thoughts? I’ll test the individual components if I have to, but it seems like there should be a better way.

Never mind. I forgot that the ‘==’ operator returns all ones (0xFF, 0xFFFF, and so on) for equality. So you can use the ‘any’ and ‘all’ functions to test the result.

Way to problem solve! Answered your own question. Any and All functions work good.