Thank you for your reply. From documentation it is clear that nabla_grad is the transpose of grad. But my question was not about that. I was asking about the dot operator with two grads.
Mathematically the dot between two second order tensors should be equivalent to the matrix multiplication. But what I think Fenics is doing