Apply linear transformation to vector