Ported Matrix to vector-space.