From c908ce44a3213a42b94b8f464dac6e43d02184b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 3 Jan 2020 23:39:39 +0100 Subject: [PATCH] NumPy --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb25bc7..f385741 100644 --- a/README.md +++ b/README.md @@ -2599,7 +2599,7 @@ right = [[0.1, 0.6, 0.8], [0.1, 0.6, 0.8], [0.1, 0.6, 0.8]] # Shape: (3, 3) <- ```python >>> points = np.array([0.1, 0.6, 0.8]) -[ 0.1, 0.6, 0.8] + [ 0.1, 0.6, 0.8] >>> wrapped_points = points.reshape(3, 1) [[ 0.1], [ 0.6], diff --git a/index.html b/index.html index 4497412..5cf41eb 100644 --- a/index.html +++ b/index.html @@ -2214,7 +2214,7 @@ right = [[0.1, 0.6

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])
-[ 0.1,  0.6,  0.8]
+ [ 0.1,  0.6,  0.8]
 >>> wrapped_points = points.reshape(3, 1)
 [[ 0.1],
  [ 0.6],