# dot product Mat matrices

I want to get the dot product from two Mat matrices using cvDotProduct. But this gives the error error: cannot convert ‘cv::Mat’ to ‘const CvArr* {aka const void*}’ for argument ‘1’ to ‘double

Please give some code