Cosmological parameters from the comparison of peculiar velocities with predictions from the 2M++ density field