Theano/Theano — pull request #1088 by abalkin (2012-11-22 20:17:47+00:00)
Title: Issue 1080: Make TensorVariable interface more similar to that of numpy.ndarray

I implemented diagonal() but its grad needs diag(), so I started implementation of that also. Strictly speaking this goes beyond #1080, so I would appreciate some early comments on this work. Interestingly, some of this functionality is already available for sparse tensors.