pascanur/Theano — comment on commit 161a3682db710723d8ae3f0e595f0f8330dee214
File: theano/tensor/tests/test_2nd_order_grads.py line 49
By delallea:

There is a numpy.fill_diagonal function :)