aequilibrae.matrix.sparse_matrix#

Classes

COO

A class to implement sparse matrix operations such as reading, writing, and indexing

Sparse

A class to implement sparse matrix operations such as reading, writing, and indexing

class aequilibrae.matrix.sparse_matrix.COO#

A class to implement sparse matrix operations such as reading, writing, and indexing

classmethod from_disk(path, names=None, aeq=False)#

Read a OMX file and return a dictionary of matrix names to a scipy.sparse matrix, or aequilibrae.matrix.sparse matrix.

classmethod from_matrix(m)#

Create COO matrix from an dense or scipy-like matrix.

to_disk(path, name: str)#
to_scipy(shape=None)#

Create scipy.sparse.coo_matrix from this COO matrix.

shape#
class aequilibrae.matrix.sparse_matrix.Sparse#

A class to implement sparse matrix operations such as reading, writing, and indexing

classmethod from_disk(path, names=None, aeq=False)#

Read a OMX file and return a dictionary of matrix names to a scipy.sparse matrix, or aequilibrae.matrix.sparse matrix.

to_disk(path, name: str)#