Template Function Pennylane::Util::sorting_indices(const T *, std::size_t)¶
Defined in File Util.hpp
Function Documentation¶
-
template<typename T>
inline auto Pennylane::Util::sorting_indices(const T *arr, std::size_t length) -> std::vector<std::size_t>¶ Determines the indices that would sort an array.
- Template Parameters
T – Vector data type.
- Parameters
arr – Array to be inspected.
length – Size of the array
- Returns
a vector with indices that would sort the array.
api/function_Util_8hpp_1a50e1922887a3e7bcef0e444437652768
Download Python script
Download Notebook
View on GitHub