namespace seams#

namespace seams {
 
// namespaces
 
namespace seams::cfg;
namespace seams::cpu;
namespace seams::detail;
namespace seams::domain;
namespace seams::minimax;
namespace seams::product;
namespace seams::solid;
namespace seams::sphericart_ylm;
namespace seams::steinhardt;
namespace seams::team;
    namespace seams::team::detail;
namespace seams::tsan;
namespace seams::wigner;
namespace seams::ylm;
 
// structs
 
struct BondOptions;
struct BrineFronts;
struct BrineOptions;
struct BrineProfile;
struct CageCounts;
struct CageOptions;
struct ChillOptions;
struct ChordlessCycles;
struct Classification;
struct Contacts;
struct DensityOptions;
struct DensityProfile;
struct DiffusionFit;
struct DirectedBond;
struct DirectedBondOptions;
struct Distribution;
struct DistributionOptions;
struct DomainOptions;
struct DomainReport;
struct EdgeSet;
struct FairState;
 
template <class T>
struct FilledByTeam;
 
struct FingerprintOptions;
struct HbondLifetimeCurve;
struct HbondLifetimeFit;
struct KnnOptions;
struct MoleculeCentres;
struct MoleculeDipoles;
struct MsdCurve;
struct NeighbourOptions;
struct OrderOptions;
struct OrientationOrder;
struct Pockets;
struct PrismCensus;
struct PrismOptions;
struct Q4Q6;
struct Q6Bar;
struct Q6BarOptions;
struct Rejection;
struct ReorientationCurve;
struct ReorientationFit;
struct RingOptions;
struct RunningCoordination;
struct SheetOptions;
struct SignatureMatch;
struct SignatureOptions;
struct Steinhardt;
struct SteinhardtOptions;
struct TeamWidth;
struct WaterVectors;
 
// classes
 
class Brine;
class Cages;
class Error;
class FairWidth;
class Fingerprint;
class HbondTcf;
class Msd;
class Neighbours;
class PinSession;
class Reorientation;
class Rings;
class System;
 
// global functions
 
EdgeSet edgeSetOf(const std::vector<std::vector<int>>& rows);
bool provenEqual(const EdgeSet& a, const EdgeSet& b);
 
template <std::integral To, std::integral From>
To checkedCast(From value);
 
template <std::integral From>
std::size_t toIndex(From value);
 
bool gridFits(int nx, int ny, int nz, int& cells);
void coarsenUntilFits(int& nx, int& ny, int& nz, int floorDim, int maxCells = 1<<22);
bool prefixCounts(const int* counts, int n, std::vector<int>& offsets);
bool parseExactDouble(std::string_view text, double& out);
int teamThreads();
 
template <class T>
void exclusiveScan(std::vector<T>& values);
 
template <class T, class Less>
void parallelStableSort(std::vector<T>& values, Less less);
 
void BatchPeriodicDistSq(const double* dx, const double* dy, const double* dz, double bx, double by, double bz, double* out, size_t n);
void widenAffinity();
void tuneHeap();
int teamWidth();
int& askedWidth();
int poolWidth(int team);
 
template <class Search>
void withTeamAsleep(int width, Search&& search);
 
void releaseTeam();
bool placementHeld();
int loadWidth(int base);
bool othersHoldHalf();
void prepareCompute();
void adoptThreads();
int teamFor(int n);
int poolFor(int n);
FairState& fairState();
int& fairDepth();
bool fairEnabled();
 
} // namespace seams