Initializer

init(structure:data:)

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

Declaration

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

Parameters

structure

The sparsity structure of the matrix.

data

The array of values in the nonzero blocks of the matrix stored contiguously, each block in column-major order (that is, consecutive items of the columns are contiguous in the 1D storage array). If there are N structural nonzero blocks in the matrix, data holds blockSize x blockSize x N double-precision values.