Fix matrix views.
Fix compilation errors.
Merge pull request #122 from DO-CV/fix-matrix-views

[MAINT] Fix matrix views.