We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e477f commit d471df9Copy full SHA for d471df9
src/regfans/util.py
@@ -151,17 +151,14 @@ def first_hit(
151
p1 = np.array(p1)
152
H = np.array(H)
153
154
- # defaults
155
- first_hit_ind = -1
156
- first_hit_dist = np.inf
157
-
158
- inds = np.arange(H.shape[0])
+ # helpers
159
Hp0 = H@p0
160
Hp1 = H@p1
161
162
mask = (Hp0>0) & (Hp0>Hp1)
163
164
# find first hit hyperplane
+ first_hit_ind = -1
165
for k in range(0, H.shape[0]):
166
if not mask[k]:
167
continue
0 commit comments