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?
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 acsc_matrix: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?