build_min_distance

jaxrens.constraints.min_distance.build_min_distance(d_min_matrix)[source]

Build a minimum-distance predicate from a per-pair threshold matrix.

Parameters:

d_min_matrix – (n_types, n_types) symmetric matrix of minimum allowed distances, indexed by the run’s integer type labels. A zero entry disables the constraint for that pair.

Returns:

is_valid(positions, types, cell) -> bool scalar predicate.

Return type:

object