diff --git a/README.md b/README.md index dc309c1..f9a48f1 100644 --- a/README.md +++ b/README.md @@ -2682,7 +2682,7 @@ import numpy as np * **Indexes should not be tuples because Python converts `'obj[i, j]'` to `'obj[(i, j)]'`.** ### Broadcasting -**Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.** +**Set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.** ```python left = [[0.1], [0.6], [0.8]] # Shape: (3, 1) @@ -2706,9 +2706,6 @@ right = [[0.1, 0.6, 0.8], # Shape: (3, 3) <- ! [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]`): diff --git a/index.html b/index.html index c6b0514..134cef8 100644 --- a/index.html +++ b/index.html @@ -2195,7 +2195,7 @@ drawer = cg.output.GraphvizOutput(output_file=filename) -

Broadcasting

Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.

left  = [[0.1], [0.6], [0.8]]                           # Shape: (3, 1)
+

Broadcasting

Set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.

left  = [[0.1], [0.6], [0.8]]                           # Shape: (3, 1)
 right = [ 0.1 ,  0.6 ,  0.8 ]                           # Shape: (3,)
 
@@ -2213,7 +2213,7 @@ right = [[0.1, 0.60.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])
+

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],
@@ -2235,8 +2235,7 @@ right = [[0.1,  0.60.7,  0.2,  inf]]
 >>> distances.argmin(1)
 [1, 2, 1]
-
- +

#Image

# $ pip3 install pillow