namespace seams

Overview

namespace seams {
 
// namespaces
 
namespace seams::sphericart_ylm;
namespace seams::steinhardt;
 
// global functions
 
void BatchPeriodicDistSq(const double* dx, const double* dy, const double* dz, double bx, double by, double bz, double* out, size_t n);
void BatchPeriodicDistSq(std::span<const double> dx, std::span<const double> dy, std::span<const double> dz, double bx, double by, double bz, std::span<double> out);
 
} // namespace seams

Detailed Documentation

Global Functions

void BatchPeriodicDistSq(std::span<const double> dx, std::span<const double> dy, std::span<const double> dz, double bx, double by, double bz, std::span<double> out)

Squared minimum-image distances for a batch of coordinate differences, with the extents carried alongside the data.

The ranges must agree in length; the shortest one bounds the work, so a mismatched call computes fewer results rather than running off the end of an array. This overload forwards to whichever kernel the build selected.

Parameters:

dx

dy

dz

Coordinate differences.

bx

by

bz

Periodic box dimensions.

out

Squared distances.