Update diagonal example storing intermediate diagonal result in a vector.
Element-wise max of two matrices
Element-wise square root of a matrix.
Misc operations with vector.