Skip to content

Scipy sparse matrix interface update #214

Description

@Zhen-Ni

SciPy sparse is shifting from a sparse matrix interface to a sparse array interface (link). When setting up the osqp solver using csc_array, a warning will be printed saying that this is not a csc_matrix:

        # Convert matrices in CSC form to individual pointers
        if not spa.isspmatrix_csc(P):
            warnings.warn('Converting sparse P to a CSC matrix. This may take a while...')
            P = P.tocsc()
        if not spa.isspmatrix_csc(A):
            warnings.warn('Converting sparse A to a CSC matrix. This may take a while...')
            A = A.tocsc()

However, this conversion actually does nothing for the new scipy interface.
Would it be possible to update the sparse type checks in the osqp interface to recognize both csc_matrix and csc_array as valid csc sparse matrix/array inputs, so this redundant warning can be avoided?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions