## matrix


A sparse vector of vectors.


Usage

``` python
matrix(
    data=(),
    copy=True,
)
```


## Parameters


`data: Iterable = ()`    


## Attributes

| Name | Description |
|----|----|
| [T](#T) | Return matrix with reversed dimensions. |
| [col](#col) | COO format column index array of the matrix |
| [data](#data) | COO format data array of the matrix |
| [row](#row) | COO format row index array of the matrix |

------------------------------------------------------------------------


#### T


Return matrix with reversed dimensions.


`T=property(transpose)`  


------------------------------------------------------------------------


#### col


COO format column index array of the matrix


`col: np.ndarray`


------------------------------------------------------------------------


#### data


COO format data array of the matrix


`data: np.ndarray`


------------------------------------------------------------------------


#### row


COO format row index array of the matrix


`row: np.ndarray`


## Methods

| Name | Description |
|----|----|
| [filter()](#filter) | Return matrix with function applies across vectors. |
| [fromcoo()](#fromcoo) | Return matrix from COOrdinate format arrays. |
| [map()](#map) | Return matrix with function applies across vectors. |
| [sum()](#sum) | Return sum of matrix elements across axis, by default both. |
| [tocoo()](#tocoo) | Return [row](matrix.md#spector.matrix.row), [col](matrix.md#spector.matrix.col), and [data](matrix.md#spector.matrix.data) arrays in a single pass. |
| [transpose()](#transpose) | Return matrix with reversed dimensions. |
| [update()](#update) | Update from mapping or iterable. |

------------------------------------------------------------------------


#### filter()


Return matrix with function applies across vectors.


Usage

``` python
filter(func, *args, **kwargs)
```


------------------------------------------------------------------------


#### fromcoo()


Return matrix from COOrdinate format arrays.


Usage

``` python
fromcoo(row, col, data)
```


------------------------------------------------------------------------


#### map()


Return matrix with function applies across vectors.


Usage

``` python
map(func, *args, **kwargs)
```


------------------------------------------------------------------------


#### sum()


Return sum of matrix elements across axis, by default both.


Usage

``` python
sum(axis=None)
```


------------------------------------------------------------------------


#### tocoo()


Return [row](matrix.md#spector.matrix.row), [col](matrix.md#spector.matrix.col), and [data](matrix.md#spector.matrix.data) arrays in a single pass.


Usage

``` python
tocoo()
```


------------------------------------------------------------------------


#### transpose()


Return matrix with reversed dimensions.


Usage

``` python
transpose()
```


------------------------------------------------------------------------


#### update()


Update from mapping or iterable.


Usage

``` python
update(data)
```
