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