einsums::sentinel_to_indices#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

Defined in header Einsums/TensorBase/IndexUtilities.hpp.

template<size_t num_unique_inds>
void sentinel_to_indices(size_t sentinel, const size_t *unique_strides, size_t *out_inds)#

Converts a single sentinel value into a list of indices.

Parameters:
  • sentinel – The sentinel to convert.

  • unique_strides – The strides of the unique indices that the sentinel is iterating over.

  • out_inds – The converted indices.

template<size_t num_indices, typename StorageType, typename ...StridesInds>
requires (sizeof...(StridesInds) % 2 == 0)
void sentinel_to_indices(size_t sentinel, const size_t *index_strides, StridesInds&&... strides_inds)#

Converts a single sentinel value into lists of indices.

Parameters:
  • sentinel – The sentinel to convert.

  • index_strides – The strides of the unique indices that the sentinel is iterating over.

  • strides_inds – The converted indices.