File size: 806 Bytes
5d1e260
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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:
```Python
# 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
```

```Python
# 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/
```