Skip to main content

suitesparseget

suitesparseget makes it easy to get matrices from the SuiteSparse Matrix Collection into Python. It provides a simple interface to download and access matrices from the collection, which is a widely used resource for testing and benchmarking numerical algorithms.

It is a modern version of ssgetpy, which allows downloading of matrix files, but does not provide a method to import them into Python.

suitesparseget uses the pandas library to manage the index of matrices, which allows easier manipulation and filtering of the data than ssgetpy.

An example in examples/ssget_example.py utilizes my C++Sparse library to make spy plots of the matrices.

The repo is a work in progress, so check back soon for more features and examples!

Usage

import suitesparseget as ssg

df = ssg.get_index()  # get the index of matrices
print(df.head())  # print the first few rows of the index

# Get a problem from the index
problem = ssg.get_problem(index=df, name='arc130')
print(problem)

Configuration

You can configure the download directory for matrices by creating a suitesparseget.toml file. On import, suitesparseget will look for this file in:

  1. the current working directory
  2. the user's home directory
  3. the default data directory (~/.suitesparseget). The first file found will be used. If no configuration file is found, data will be downloaded to the default data directory (~/.suitesparseget).

The configuration file can contain the following sections:

[paths]
data_directory = '.suitesparseget'

The path can either be absolute, or relative to the user's home directory.

Metadata

Release files for suitesparsegetpy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suitesparsegetpy 0.1.1
File Size Uploaded
suitesparsegetpy-0.1.1.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for suitesparsegetpy 0.1.1
File Interpreter ABI Platform
suitesparsegetpy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / suitesparsegetpy-0.1.1.tar.gz

Download URL suitesparsegetpy-0.1.1.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1a9d5efc3ba3d483ec30a453157e222a4c203646c25414660e1992f642840c61
BLAKE2b-256 checksum
How to use checksums
d2535f9567c406385014a2d9924f1895b417c2d19b2073ca48745d219b07b668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / suitesparsegetpy-0.1.1-py3-none-any.whl

Download URL suitesparsegetpy-0.1.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55f627acfb0f68540b4858d1fe8fc109925c0f7bae6f2296eeb3428d2cfbc200
BLAKE2b-256 checksum
How to use checksums
10cb81139f70b3550543eaed32b3669992b7b30b194700c0bd82c598a2148be0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page