matrix vector multiplication and matrix transpose