The linearization of the initial-boundary value problem of the nonlinear Schro¨dinger equation