Skip to content

Commit 8df24b0

Browse files
philippeitisJoseph Weston
authored andcommitted
Use math.sqrt instead of numpy.sqrt
I don't see any usages of numpy's sqrt for vectors, so I just switched the import over to the math library.
1 parent 70ffe8a commit 8df24b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

adaptive/learner/triangulation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import Counter
22
from collections.abc import Iterable, Sized
33
from itertools import chain, combinations
4-
from math import factorial
4+
from math import factorial, sqrt
55
import scipy.spatial
66

77
from numpy import (
@@ -17,7 +17,6 @@
1717
eye,
1818
mean,
1919
abs,
20-
sqrt,
2120
)
2221
from numpy import sum as nsum
2322
from numpy.linalg import det as ndet

0 commit comments

Comments
 (0)