Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
5fff0a6aef
commit
60b4b8c475
1 changed files with 51 additions and 0 deletions
|
@ -43,6 +43,57 @@ numpy.diag_indices_from(arr)
|
|||
|
||||
> Return the indices to access the main diagonal of an n-dimensional array.
|
||||
|
||||
|
||||
## [numpy.diag](https://numpy.org/doc/stable/reference/generated/numpy.diag.html)
|
||||
|
||||
```python
|
||||
numpy.diag(v, k=0)
|
||||
```
|
||||
|
||||
> Extract a diagonal or construct a diagonal array.
|
||||
>
|
||||
> See the more detailed documentation for numpy.diagonal if you use this function to extract a diagonal and wish to write to the resulting array; whether it returns a copy or a view depends on what version of numpy you are using.
|
||||
|
||||
|
||||
## [numpy.diagonal](https://numpy.org/doc/stable/reference/generated/numpy.diagonal.html)
|
||||
|
||||
```python
|
||||
numpy.diagonal(a, offset=0, axis1=0, axis2=1)
|
||||
```
|
||||
|
||||
> Return specified diagonals.
|
||||
>
|
||||
> If a is 2-D, returns the diagonal of a with the given offset, i.e., the collection of elements of the form a[i, i+offset]. If a has more than two dimensions, then the axes specified by axis1 and axis2 are used to determine the 2-D sub-array whose diagonal is returned. The shape of the resulting array can be determined by removing axis1 and axis2 and appending an index to the right equal to the size of the resulting diagonals.
|
||||
|
||||
## [numpy.tril_indices_from](https://numpy.org/doc/stable/reference/generated/numpy.tril_indices_from.html)
|
||||
|
||||
```python
|
||||
numpy.tril_indices_from(arr, k=0)
|
||||
```
|
||||
|
||||
> Return the indices for the lower-triangle of arr.
|
||||
|
||||
## [numpy.tril_indices](https://numpy.org/doc/stable/reference/generated/numpy.tril_indices.html)
|
||||
|
||||
```python
|
||||
numpy.tril_indices(n, k=0, m=None)
|
||||
```
|
||||
|
||||
> Return the indices for the lower-triangle of an (n, m) array.
|
||||
|
||||
## [numpy.triu_indices_from](https://numpy.org/doc/stable/reference/generated/numpy.triu_indices_from.html)
|
||||
|
||||
```python
|
||||
numpy.triu_indices_from(arr, k=0)
|
||||
```
|
||||
|
||||
> Return the indices for the upper-triangle of arr.
|
||||
|
||||
## [numpy.triu_indices](https://numpy.org/doc/stable/reference/generated/numpy.triu_indices.html)
|
||||
|
||||
```python
|
||||
numpy.triu_indices(n, k=0, m=None)
|
||||
```
|
||||
|
||||
> Return the indices for the upper-triangle of an (n, m) array.
|
||||
|
||||
|
|
Loading…
Reference in a new issue