I think it would be more flexible if these were scalar shared variables. Then they can be updated after a function is compiled with these norm constraints in them. @goodfeli do you agree?