nigsp.io.export_mtx

nigsp.io.export_mtx(data, fname, ext=None)[source]

Export data into a text-like or mat file.

Parameters:
datanp.ndarray

Data to be exported.

fnamestr or os.PathLike

Name of the output file.

extstr or None, optional

Selected extension for export.

Returns:
0

On a successful run

Raises:
BrokenPipeError

If somewhat an extension that is not supported passes all checks. (This should never happen)

ImportError

If scipy is not installed or cannot be found.

NotImplementedError

Spreadheet output is not implemented yet.

Notes

Requires module scipy to export in .mat format. (Will require other modules to export in XLS-like format)