PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
ArgSort.h File Reference

Non-intrusive sorting. More...

#include "pbat/Aliases.h"
#include <algorithm>
#include <concepts>
#include <numeric>

Go to the source code of this file.

Namespaces

namespace  pbat
 The main namespace of the library.
 
namespace  pbat::common
 Common functionality.
 

Functions

template<std::integral TIndex, class FLess>
auto pbat::common::ArgSort (TIndex n, FLess less) -> Eigen::Vector< TIndex, Eigen::Dynamic >
 Computes the indices that would sort an array.
 

Detailed Description

Non-intrusive sorting.

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-02-10