@@ -1464,8 +1464,8 @@ NumPy
1464
1464
```
1465
1465
1466
1466
``` python
1467
- value = < array> .min([axis])
1468
- index = < array> .argmin([axis])
1467
+ value = < array> .min([axis])
1468
+ index = < array> .argmin([axis])
1469
1469
```
1470
1470
1471
1471
``` python
@@ -1480,17 +1480,17 @@ index = <array>.argmin([axis])
1480
1480
left = [[0.1 ], [0.6 ], [0.8 ]] # Shape: (3, 1)
1481
1481
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
1482
1482
```
1483
- 1 . If array shapes differ, left-pad the smaller shape with ones.
1483
+ ** 1. If array shapes differ, left-pad the smaller shape with ones.**
1484
1484
``` python
1485
1485
left = [[0.1 ], [0.6 ], [0.8 ]] # Shape: (3, 1)
1486
1486
right = [[0.1 , 0.6 , 0.8 ]] # Shape: (1, 3) <- !
1487
1487
```
1488
- 2 . If any dimensions differ in size, expand the ones that have size 1 by duplicating their elements.
1488
+ ** 2. If any dimensions differ in size, expand the ones that have size 1 by duplicating their elements.**
1489
1489
``` python
1490
1490
left = [[0.1 , 0.1 , 0.1 ], [0.6 , 0.6 , 0.6 ], [0.8 , 0.8 , 0.8 ]] # Shape: (3, 3) <- !
1491
1491
right = [[0.1 , 0.6 , 0.8 ], [0.1 , 0.6 , 0.8 ], [0.1 , 0.6 , 0.8 ]] # Shape: (3, 3) <- !
1492
1492
```
1493
- 3 . If neither non-matching dimension has size 1, rise an error.
1493
+ ** 3. If neither non-matching dimension has size 1, rise an error.**
1494
1494
1495
1495
### Example
1496
1496
** For each point returns index of its nearest point: ` [0.1, 0.6, 0.8] => [1, 2, 1] ` .**
0 commit comments