---
title: columnCount
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/sparsematrixstructure/columncount
---

# columnCount

The number of columns in the matrix.

## Declaration

```swift
var columnCount: Int32
```

## See Also

### Inspecting the properties of a sparse matrix description

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