File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1911,14 +1911,14 @@ indexes = <array>.argmin(axis)
1911
1911
** Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.**
1912
1912
1913
1913
``` 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)
1916
1916
```
1917
1917
1918
1918
#### 1. If array shapes differ in length, left-pad the smaller shape with ones:
1919
1919
``` 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) <- !
1922
1922
```
1923
1923
1924
1924
#### 2. If any dimensions differ in size, expand the ones that have size 1 by duplicating their elements:
You can’t perform that action at this time.
0 commit comments