diff --git a/README.md b/README.md index 8136eb8..557a965 100644 --- a/README.md +++ b/README.md @@ -2616,7 +2616,7 @@ left = [[0.1, 0.1, 0.1], [0.6, 0.6, 0.6], [0.8, 0.8, 0.8]] # Shape: (3, 3) <- right = [[0.1, 0.6, 0.8], [0.1, 0.6, 0.8], [0.1, 0.6, 0.8]] # Shape: (3, 3) <- ! ``` -#### 3. If neither non-matching dimension has size 1, rise an error. +#### 3. If neither non-matching dimension has size 1, raise an error. ### Example diff --git a/index.html b/index.html index 823c566..b450a17 100644 --- a/index.html +++ b/index.html @@ -2233,7 +2233,7 @@ right = [[0.1 , 0.6< right = [[0.1, 0.6, 0.8], [0.1, 0.6, 0.8], [0.1, 0.6, 0.8]] # Shape: (3, 3) <- ! -

3. If neither non-matching dimension has size 1, rise an error.

Example

For each point returns index of its nearest point ([0.1, 0.6, 0.8] => [1, 2, 1]):

>>> points = np.array([0.1, 0.6, 0.8])
+

3. If neither non-matching dimension has size 1, raise an error.

Example

For each point returns index of its nearest point ([0.1, 0.6, 0.8] => [1, 2, 1]):

>>> points = np.array([0.1, 0.6, 0.8])
  [ 0.1,  0.6,  0.8]
 >>> wrapped_points = points.reshape(3, 1)
 [[ 0.1],