pygmtools.numpy_backendΒΆ

Functions

build_batch

numpy implementation of building a batched np.ndarray

dense_to_sparse

numpy implementation of converting a dense adjacency matrix to a sparse matrix

from_numpy

identity function

gaussian_aff_fn

numpy implementation of Gaussian affinity function

hungarian

numpy implementation of Hungarian algorithm

inner_prod_aff_fn

numpy implementation of inner product affinity function

ipfp

numpy implementation of IPFP algorithm

rrwm

numpy implementation of RRWM algorithm.

sinkhorn

numpy implementation of Sinkhorn algorithm

sm

numpy implementation of SM algorithm.

to_numpy

identity function