---
title: SparseMatrixStructure
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/sparsematrixstructure
---

# SparseMatrixStructure

A description of the sparsity structure of a sparse matrix.

## Declaration

```swift
struct SparseMatrixStructure
```

## Mentioned in

Creating sparse matrices

## Overview

Overview The sparsity structure is in a block compressed sparse column format. The matrix consists of rowCount x columnCount blocks, each of which is a square matrix of some fixed size. The system stores this block size separately from the sparsity because the graph algorithms that operate on the structure don’t need it.

## Topics

### Creating a sparse matrix description

- [init(rowCount:columnCount:columnStarts:rowIndices:attributes:blockSize:)](accelerate/sparsematrixstructure/init(rowcount:columncount:columnstarts:rowindices:attributes:blocksize:).md)

### Inspecting the properties of a sparse matrix description

- [attributes](accelerate/sparsematrixstructure/attributes.md)
- [blockSize](accelerate/sparsematrixstructure/blocksize.md)
- [columnCount](accelerate/sparsematrixstructure/columncount.md)
- [columnStarts](accelerate/sparsematrixstructure/columnstarts.md)
- [rowCount](accelerate/sparsematrixstructure/rowcount.md)
- [rowIndices](accelerate/sparsematrixstructure/rowindices.md)

## See Also

### Related Documentation

- [Creating sparse matrices](accelerate/creating-sparse-matrices.md)

### Specifying the Structure and Attributes of a Sparse Matrix

- [SparseAttributes_t](accelerate/sparseattributes_t.md)
