python/pycubool/io.py
def export_matrix_to_mtx(path: str, matrix: Matrix):
    """
    Save matrix to mtx file.

    :param path: Path and file name of the file to save data
    :param matrix: Matrix to export
    :return: None
    """

    rows, cols = matrix.to_lists()
    nvals = matrix.nvals
    shape = matrix.shape
    write_mtx_file(path=path, shape=shape, rows=rows, cols=cols, nvals=nvals)

    Save matrix to mtx file.

    :param path: Path and file name of the file to save data
    :param matrix: Matrix to export
    :return: None
    
Save matrix to mtx file.
Save matrix to mtx file .
def export_matrix_to_mtx(path: str, matrix: Matrix):
    rows, cols = matrix.to_lists()
    nvals = matrix.nvals
    shape = matrix.shape
    write_mtx_file(path=path, shape=shape, rows=rows, cols=cols, nvals=nvals)
def export_matrix_to_mtx ( path : str , matrix : Matrix ) : rows , cols = matrix . to_lists ( ) nvals = matrix . nvals shape = matrix . shape write_mtx_file ( path = path , shape = shape , rows = rows , cols = cols , nvals = nvals )
Save matrix to mtx file.
Save matrix to mtx file .
"""
    Save matrix to mtx file.

    :param path: Path and file name of the file to save data
    :param matrix: Matrix to export
    :return: None
    """
None
path
str
Path and file name of the file to save data
Path and file name of the file to save data
matrix
Matrix
Matrix to export
Matrix to export