# `Pgvector.SparseVector`
[🔗](https://github.com/pgvector/pgvector-elixir/blob/v0.4.0/lib/pgvector/sparse_vector.ex#L1)

A sparse vector struct for pgvector

# `t`

```elixir
@type t() :: %Pgvector.SparseVector{data: binary()}
```

A sparse vector

# `dimensions`

Returns the number of dimensions

# `from_binary`

Creates a new sparse vector from its binary representation

# `indices`

Returns the non-zero indices

# `new`

Creates a new sparse vector from a list, tensor or sparse vector

# `new`

Creates a new sparse vector from a map of non-zero elements

# `values`

Returns the non-zero values

