Real-space renormalization of the self-avoiding walk by a linear transformation