Structure

SparseMatrix_Double

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

Declaration

struct SparseMatrix_Double

Overview

The Accelerate framework uses Compressed Sparse Column (CSC) format to store sparse matrices. CSC stores the matrix as a series of column vectors where only the nonzero entries are specified as (row-index, value) pairs.

Topics

Creating a Sparse Matrix

init(structure: SparseMatrixStructure, data: UnsafeMutablePointer<Double>)

Creates a sparse matrix with the specified structure containing double-precision values.

Inspecting a Matrix's Structure and Data

var data: UnsafeMutablePointer<Double>

The array of values stored contiguously in the nonzero blocks of the matrix, each block in column-major order.

var structure: SparseMatrixStructure

The sparsity structure of the matrix.

See Also

Sparse Matrices

Creating Sparse Matrices

Create sparse matrices for factorization and solving systems.

struct SparseMatrix_Float

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

Conversion from Other Formats

Create sparse matrices from coordinate format arrays and BLAS opaque matrices.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software