A generalised Monge-Ampère equation