solution only works for a 1d array

This commit is contained in:
chrisjdavie
2017-05-25 15:25:13 +00:00
parent f440691a50
commit d130d89a48
4 changed files with 4 additions and 4 deletions

View File

@@ -236,7 +236,7 @@ np.sqrt(-1) == np.emath.sqrt(-1)
#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)
#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)