library(MASS)

u = c(0.5, 0.5)
v = c(3, -4)
u%*%v
##      [,1]
## [1,] -0.5