1. Introduction
2. Data
2.1. Photometry
2.2. Spectroscopy
2.3. Stellar masses
3. From stellar masses to the galaxy stellar mass function
4. Comparison to previous work
4.1. Comparison with other observational estimates
4.2. Testing models
5. Evolution of the mass function of the red and blue galaxy populations
5.1. Classification of galaxy types
5.2. Blue and red galaxy stellar mass functions
6. Conclusions