Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

pymrm.coupling.update_csc_array_indices

Back to module page · Back to alphabetical overview

Signature

update_csc_array_indices(sparse_mat, shape, new_shape, offset = None)

Summary

Update CSC matrix row/column indexing for embedding in a larger domain.

Documentation

.. deprecated:: Use update_array_indices for automatic format dispatch.

Source

View on GitHub

def update_csc_array_indices(sparse_mat, shape, new_shape, offset=None):
    """Update CSC matrix row/column indexing for embedding in a larger domain.

    .. deprecated::
       Use :func:`update_array_indices` for automatic format dispatch.
    """
    warnings.warn(
        "update_csc_array_indices is deprecated. Use update_array_indices instead.",
        DeprecationWarning,
        stacklevel=2,
    )
    return _update_csc_array_indices(sparse_mat, shape, new_shape, offset)