# Copyright (c) 2022-2026, Yongchao Wu in Aalto University# This file is from the mdapy project, released under the BSD 3-Clause License.from__future__importannotationsfrommdapyimport_build_bondfrommdapy.parallelimportget_num_threadsimportnumpyasnp
[docs]defbuild_bond(verlet_list:np.ndarray,distance_list:np.ndarray,neighbor_number:np.ndarray,type_list:np.ndarray,cutoff_matrix:np.ndarray,)->np.ndarray:"""Build bond pairs from precomputed neighbor information."""return_build_bond.build_bond(verlet_list,distance_list,neighbor_number,type_list,cutoff_matrix,get_num_threads(),)