---
title: SparseMatrix_Double
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/sparsematrix_double
---

# SparseMatrix_Double

A structure that contains a sparse matrix of double-precision, floating-point values.

## Declaration

```swift
struct SparseMatrix_Double
```

## Mentioned in

Creating sparse matrices

## Overview

Overview You typically use sparse matrices to represent the sparse coefficient matrix in the matrix equation Ax = b. A SparseMatrix_Double structure provides a pointer to its underlying data, and information about its structure and attributes. The Accelerate framework uses the compressed sparse column (CSC) format to store sparse matrices. CSC stores the matrix as a series of column vectors that specifies only the nonzero entries as (row-index, value) pairs. For more information, see Creating sparse matrices. After you finish using a sparse matrix, call SparseCleanup(_:) to release its references to any memory that the Sparse Solvers library allocates.

## Topics

### Creating a Sparse Matrix

- [init(structure:data:)](accelerate/sparsematrix_double/init(structure:data:).md)

### Inspecting a Matrix’s Structure and Data

- [structure](accelerate/sparsematrix_double/structure.md)
- [data](accelerate/sparsematrix_double/data.md)

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

- [SparseMatrixStructure](accelerate/sparsematrixstructure.md)
- [SparseAttributes_t](accelerate/sparseattributes_t.md)

## See Also

### Creating sparse matrices

- [Creating sparse matrices](accelerate/creating-sparse-matrices.md)
- [SparseMatrix_Float](accelerate/sparsematrix_float.md)
- [Conversion from Other Formats](accelerate/conversion-from-other-formats.md)
