Dask Array's diag supporting diagonal selection
See original GitHub issueIssue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
dask.array.diag - Dask documentation
Extract a diagonal or construct a diagonal array. This docstring was copied from numpy.diag. Some inconsistencies with the Dask version may exist. See...
Read more >dask.array.diagonal - Dask documentation
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]...
Read more >API - Dask documentation
compress (condition, a[, axis]). Return selected slices of an array along given axis. ... diag (v[, k]). Extract a diagonal or construct a...
Read more >dask.array.creation - Dask documentation
Source code for dask.array.creation ... chunks="auto", M=None, k=0, dtype=float): """ Return a 2-D Array with ones on the diagonal and zeros elsewhere.
Read more >Source code for dask.array.linalg - Dask documentation
Have only one column of blocks\n\n" "Note: This function (tsqr) supports QR ... matrix l: Array, lower triangular matrix with unit diagonal. u:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool, thanks for working on this. Please let us know if you need pointers or would like someone to take a look.
I am working on a pull request on this using #4431 for the diagonal extraction case. WIP though, as I was surprised by the $(n+k)*(n+k)$ output of
np.diag(np.ones(n), k)
. I also want to have a look into cleaning up the shared but different code inda.triu
,da.tril
andda.diag
.