Gromacs  2025-dev-20241002-88a4191
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{gausstransform.cpp} Namespace Reference

Functions

IVec closestIntegerPoint (const RVec &coordinate)
 rounds real-valued coordinate to the closest integer values
 
IVec rangeBeginWithinLattice (const IVec &index, const IVec &range)
 Substracts a range from a three-dimensional integer coordinate and ensures the resulting coordinate is within a lattice. More...
 
IVec rangeEndWithinLattice (const IVec &index, const dynamicExtents3D &extents, const IVec &range)
 Adds a range from a three-dimensional integer coordinate and ensures the resulting coordinate is within a lattice. More...
 

Function Documentation

IVec gmx::anonymous_namespace{gausstransform.cpp}::rangeBeginWithinLattice ( const IVec &  index,
const IVec &  range 
)

Substracts a range from a three-dimensional integer coordinate and ensures the resulting coordinate is within a lattice.

Parameters
[in]indexpoint in lattice
[in]rangeto be shifted
Returns
Shifted index or zero if shifted index is smaller than zero.
IVec gmx::anonymous_namespace{gausstransform.cpp}::rangeEndWithinLattice ( const IVec &  index,
const dynamicExtents3D &  extents,
const IVec &  range 
)

Adds a range from a three-dimensional integer coordinate and ensures the resulting coordinate is within a lattice.

Parameters
[in]indexpoint in lattice
[in]extentsextent of the lattice
[in]rangeto be shifted
Returns
Shifted index or the lattice extent if shifted index is larger than the extent