Developer Guide and Reference

  • 2021.2
  • 04/07/2021
  • Public Content
  • Download as PDF
Contents

linear_index

Wraps an integer-based loop index that is iterating linearly through an iteration space.
#include <sdlt/linear_index.h>

Syntax

class linear_index;
Description
Inside of a linear loop, wrap the loop index with a
linear_index
to allow addition or subtraction of offsets.
Member
Description
explicit linear_index(int an_index);
Construct instance from a loop index
int value() const;
Returns the original loop index

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.