Introduction to input-output models -- Mathematical foundations of