superneuromat.SNN.weights_sparse#

SNN.weights_sparse(dtype=None)[source]#

Create a sparse weight matrix from the synaptic weights.

This is used during setup() to create the internal weight matrix.

Parameters:

dtype (type | numpy.dtype, default=None) – The data type of the weight matrix. If None, default_dtype is used.

Return type:

scipy.sparse.csc_matrix[(num_neurons, num_neurons), dtype]