fixed deprecated use of Set
simplified norm_1
fixed typo affine -> linear