<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/SparseMatrix_Float",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@SparseMatrix_Float"
  },
  "title" : "SparseMatrix_Float"
}
-->

# SparseMatrix_Float

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

```
struct SparseMatrix_Float
```

## Overview

You typically use sparse matrices to represent the sparse coefficient matrix in the matrix equation *Ax = b.* A [`SparseMatrix_Float`](/documentation/Accelerate/SparseMatrix_Float) 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 <doc://com.apple.documentation/documentation/Accelerate/creating-sparse-matrices>.

After you finish using a sparse matrix, call [`SparseCleanup(_:)`](/documentation/Accelerate/SparseCleanup(_:)-9f4vi) to release its references to any memory that the Sparse Solvers library allocates.

## Topics

### Creating a Sparse Matrix

[`init(structure:data:)`](/documentation/Accelerate/SparseMatrix_Float/init(structure:data:))

Creates a sparse matrix with the specified structure that contains single-precision values.

### Inspecting a Matrix’s Structure and Data

[`structure`](/documentation/Accelerate/SparseMatrix_Float/structure)

The sparsity structure of the matrix.

[`data`](/documentation/Accelerate/SparseMatrix_Float/data)

The array of contiguous values in the nonzero blocks of the matrix.

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

[`SparseMatrixStructure`](/documentation/Accelerate/SparseMatrixStructure)

A description of the sparsity structure of a sparse matrix.

[`SparseAttributes_t`](/documentation/Accelerate/SparseAttributes_t)

A structure that represents the attributes of a matrix.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)