nws_tools.rm_selfies

nws_tools.rm_selfies(conns)[source]

Remove self-connections from connection matrices

Parameters:

conns : NumPy 3darray

An array of K connection matrices of dimension N-by-N. Format is conns.shape = (N,N,K), such that conns[:,:,i] is the i-th N x N connection matrix

Returns:

nws : NumPy 3darray

Same format as input array but np.diag(conns[:,:,k]).min() = 0.0.

See also

None

Notes

None