Skip to content

Commit 94ac94c

Browse files
committed
Format
1 parent e9feb30 commit 94ac94c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Format
329329
```
330330

331331
### General Options
332-
```python
332+
```bash
333333
{<el>:<10} # '<el> '
334334
{<el>:>10} # ' <el>'
335335
{<el>:^10} # ' <el> '
@@ -1740,14 +1740,14 @@ import numpy as np
17401740
### Broadcasting
17411741
**Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.**
17421742
```python
1743-
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1744-
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
1743+
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1744+
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
17451745
```
17461746

17471747
#### 1. If array shapes differ, left-pad the smaller shape with ones:
17481748
```python
1749-
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1750-
right = [[0.1 , 0.6 , 0.8]] # Shape: (1, 3) <- !
1749+
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1750+
right = [[0.1 , 0.6 , 0.8]] # Shape: (1, 3) <- !
17511751
```
17521752

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

0 commit comments

Comments
 (0)