Compact linear operators on functional spaces with two norms