Theano/Theano — pull request #237 by gdesjardins (2011-11-28 21:26:11+00:00)
Title: Reviewed and added tests for AllocDiag and fixed bugs ExtractDiag:

* gradient now supports non-diagonal inputs
* ExtractDiag won't crash if input has some 0-dimensions

Sorry I botched my "add -p" so these are actually two separate commits ! :-\