Skip to content

Add xsimd::arange_batch_constant #1219

@AntoinePrv

Description

@AntoinePrv

While adding too many utilities for batch_constant may not be a goal, I believe an additional utility to generate a batch_constant with increasing numbers from zeros could be an interesting building block for a few cases:

  • Lane mask: arange_batch_constant<T, A>() / make_batch_constant<T, size / 2, A>();
  • Even numbers mask: arange_batch_constant<T, A>() % make_batch_constant<T, 2, A>();
  • Already used in tests

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions