Contents

init(structure:data:)

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

Declaration

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

Parameters

  • structure:

    The sparsity structure of the matrix.

  • data:

    The array of contiguous values in the nonzero blocks of the matrix. The matrix stores each block in column-major order. The number of elements in Data must be equal to Blocksize x Blocksize x the number of nonzero blocks in the matrix.