lightkurve.correctors.DesignMatrix.to_sparse#

DesignMatrix.to_sparse()[source]#

Convert this dense matrix object to a SparseDesignMatrix.

The values of this design matrix will be converted to a scipy.sparse.csr_matrix, which stores the values in a lower memory matrix. This is not recommended for dense matrices.