Generic function to multiply vectors
Basic processing functions now use the mat structure