gradient of a matrix - Search