NEST / utils /README.md
vincent-maillou
initial dataset commit
5d1e260
|
Raw
History Blame Contribute Delete
806 Bytes

Utils

matutils.py

This module contains utility functions for matrix handling and conversion from/to matrix market coo format and scipy npz format.

Example usage:

# Load the west0479.mtx file, convert it to npz format and save it to the specified directory
python matutils.py mm2npz /home/vmaillou/Documents/Repositories/bigbird_dataset/legacy_references/west0479/west0479.mtx /home/vmaillou/Documents/Repositories/bigbird_dataset/  legacy_references/west0479/clear
# Load the west0479.npz file, convert it to Matrix Market format and save it to the specified directory
python matutils.py npz2mm /home/vmaillou/Documents/Repositories/bigbird_dataset/legacy_references/west0479/west0479.npz /home/vmaillou/Documents/Repositories/bigbird_dataset/legacy_references/west0479/