Computer Generated Holography : from Analytic to Learning-based Methods