Add option in LMNN to learn a diagonal transformation.
Unit test for LMNN diagonal mode.
Merge pull request #1461 from iglesias/feature/lmnn_diagonal

Add option in LMNN to learn a diagonal transformation.