On the relationship between layered least squares and affine scaling steps