matrix_transpose
Transposes a matrix or a stack of matrices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
SparseArray
|
Input array. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
out |
COO
|
Transposed COO array. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input array isn't and can't be converted to COO format, or if |
Source code in sparse/numba_backend/_coo/common.py
1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 | |