Fixed a bug in size estimation of diagonal matrices and wrote a test for it
Removed extra code from the test
Merge pull request #558 from vitalyg/develop

Fixed a bug in size estimation of diagonal matrices