transform vector with matrix