Browse Source

Updated highlights

pull/83/head
Jure Šorn 3 years ago
parent
commit
4f14555798
2 changed files with 6 additions and 6 deletions
  1. 6
      README.md
  2. 6
      parse.js

6
README.md

@ -2618,19 +2618,19 @@ indexes = <array>.argmin(axis)
* **Axis is the index of a dimension that gets collapsed. The leftmost dimension has index 0.**
### Indexing
```python
```bash
<el> = <2d_array>[0, 0] # First element.
<1d_view> = <2d_array>[0] # First row.
<1d_view> = <2d_array>[:, 0] # First column. Also [..., 0].
<3d_view> = <2d_array>[None, :, :] # Expanded by dimension of size 1.
```
```python
```bash
<1d_array> = <2d_array>[<1d_row_indexes>, <1d_column_indexes>]
<2d_array> = <2d_array>[<2d_row_indexes>, <2d_column_indexes>]
```
```python
```bash
<2d_bools> = <2d_array> > 0
<1d_array> = <2d_array>[<2d_bools>]
```

6
parse.js

@ -532,9 +532,9 @@ function fixHighlights() {
$(`code:contains(\'<class_name>\', <parents_tuple>, <attributes_dict>)`).html(TYPE);
$(`code:contains(ValueError: malformed node)`).html(EVAL);
$(`code:contains(pip3 install tqdm)`).html(PROGRESS_BAR);
$(`code:contains(<el> = <2d_array>[0, 0])`).html(NUMPY_1);
$(`code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)`).html(NUMPY_2);
$(`code:contains(<2d_bools> = <2d_array> > 0)`).html(NUMPY_3);
$(`code:contains(<el> = <2d_array>[0, 0])`).html(NUMPY_1).removeClass().addClass("python language-python hljs");
$(`code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)`).html(NUMPY_2).removeClass().addClass("python language-python hljs");
$(`code:contains(<2d_bools> = <2d_array> > 0)`).html(NUMPY_3).removeClass().addClass("python language-python hljs");
$(`code:contains(pip3 install pyinstaller)`).html(PYINSTALLER);
$(`ul:contains(Only available in)`).html(INDEX);
}

Loading…
Cancel
Save