Some problem of matrices calumniate

This is always the problem when I multiply matrices
#Assertion failed (type == B.type()) in gemm
This is my define
Mat first_matches_s = cv::Mat_(3, first_matches1t.cols, CV_64FC1)
Mat A1 = cv::Mat_(3, 3, CV_64FC1);
Mat pts_e= cv::Mat_(3, pts_s.cols, CV_64FC1);
pts_e = A1 * first_matches_s;