check if this thread helps you debug your codes. Read Paul’s comment for the thread to understand while matrix multiplication you are not suppose to use incorrect function as that cause incorrect calculations and converts your vector into scalar
if still having issue then let us know
regards
DP