From 4a304c3290fdfd47ff1c90716e986da2f5cf3861 Mon Sep 17 00:00:00 2001 From: Yeonghun Kang <62047140+Yeonghun1675@users.noreply.github.com> Date: Fri, 24 May 2024 19:02:48 +0900 Subject: [PATCH] Update distance_matrix.pyx --- fast_grid/libs/distance_matrix.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fast_grid/libs/distance_matrix.pyx b/fast_grid/libs/distance_matrix.pyx index d5270a3..928fb25 100644 --- a/fast_grid/libs/distance_matrix.pyx +++ b/fast_grid/libs/distance_matrix.pyx @@ -8,6 +8,9 @@ cimport numpy as np from libc.math cimport sqrt +@cython.boundscheck(False) +@cython.wraparound(False) +@cython.cdivision(True) def distance_matrix_triclinic_cython(np.ndarray[np.float64_t, ndim=2] pos1, np.ndarray[np.float64_t, ndim=2] pos2, np.ndarray[np.float64_t, ndim=2] box):