eigen vector calculation