Skip to content

Commit c959a26

Browse files
committed
Revert
1 parent 3740af8 commit c959a26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,14 +1911,14 @@ indexes = <array>.argmin(axis)
19111911
**Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.**
19121912

19131913
```python
1914-
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1915-
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
1914+
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1915+
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
19161916
```
19171917

19181918
#### 1. If array shapes differ in length, left-pad the smaller shape with ones:
19191919
```python
1920-
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1921-
right = [[0.1 , 0.6 , 0.8]] # Shape: (1, 3) <- !
1920+
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1921+
right = [[0.1 , 0.6 , 0.8]] # Shape: (1, 3) <- !
19221922
```
19231923

19241924
#### 2. If any dimensions differ in size, expand the ones that have size 1 by duplicating their elements:

0 commit comments

Comments
 (0)