Working on vector and matrix types.