I have a complex weight tuning procedure that does linear algebra on the weight matrix, which is a pain to implement with pure Brian since I need to introduce a new set of synapses for every matrix multiplication. For example, I need synapses onto a neuron group with a summed variable to perform matrix multiplication, and then I want to sum over that vector, so I need another group of synapses from ng[:] to ng[0] with a shared, summed variable
So this is more out of curiosity, and I think the answer is “no” from looking at the docs, but is there a way to easily implement vector operations for non-numpy targets? For example, the sum over all the weights in a synapse group? How complicated would it be to add support for this?
What you have already tried
Adding a sum function to the cython target (which then fails because it receives a float instead of an iterable)