We study an intrinsic
cohomology theory of Koszul–Vinberg algebras and their modules. Our results may
be regarded as improvements of the attempt by Albert Nijenhuis in 1969. In
particular, we completely solve a fundamental problem raised by M. Gerstenhaber. A
short appendix is devoted to the relationships between our results and the pioneering
work of Nijenhuis.