On the computation of the Lichnerowicz–Jacobi cohomology