RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
hanoiSort.h File Reference
#include <RDGeneral/export.h>
#include <cstring>
#include <cassert>
#include <cstdlib>
#include <vector>
#include <span>

Go to the source code of this file.

Namespaces

namespace  RDKit
 Std stuff.
namespace  RDKit::detail

Functions

template<typename CompareFunc>
bool RDKit::detail::hanoi (int *base, int nel, int *temp, int *count, int *changed, CompareFunc compar)
template<typename CompareFunc>
void RDKit::hanoisort (int *base, int nel, int *count, int *changed, CompareFunc compar)
template<typename CompareFunc>
void RDKit::hanoisort (std::span< int > &base, std::vector< int > &count, std::vector< int > &changed, CompareFunc compar)