suitesparse_matrix

probnum.problems.zoo.linalg.suitesparse_matrix(name, group, verbose=False)[source]

Sparse matrix from the SuiteSparse Matrix Collection.

Download a sparse matrix benchmark from the SuiteSparse Matrix Collection. [1] [2]

Parameters:
  • name (str) – Name of the matrix.

  • group (str) – Group of the matrix.

  • verbose (bool) – Print additional information.

Return type:

SuiteSparseMatrix

References

Examples

>>> ssmat = suitesparse_matrix(name="ash85", group="HB")
>>> ssmat
<SuiteSparseMatrix with shape=(85, 85) and dtype=float64>
>>> ssmat.trace()
85.0