Notwithstanding any provision of the code to the contrary, all persons committed to the custody of the commissioner of the division of corrections for presentence diagnosis and classification and all persons sentenced to the custody of the division of corrections shall, upon transfer to the division of corrections, undergo diagnosis and classification.