ipu function

iterative proportional updating