ConditionalSelect is used to mask an API, for example:
a = Sve.ConditionalSelect(mask, Sve.Add(a,b), a);
Is equivalent to:
This does not work when using the across methods.
a = Sve.ConditionalSelect(mask, Sve.AddAcross(a), a);
Is saying to add together all the elements in a and place in field 0, zeroing all other elements. Then use mask to select which elements to pick from the result. That is valid C#, but is a weird thing to do.
the more likely use case is to take all the elements in a that are marked as active in mask and add them together, putting them in field 0, zeroing all other elements. There is no obvious way to do this?
ConditionalSelect is used to mask an API, for example:
Is equivalent to:
This does not work when using the across methods.
Is saying to add together all the elements in
aand place in field 0, zeroing all other elements. Then usemaskto select which elements to pick from the result. That is valid C#, but is a weird thing to do.the more likely use case is to take all the elements in
athat are marked as active inmaskand add them together, putting them in field 0, zeroing all other elements. There is no obvious way to do this?