This subroutine calculates scaling factors for a sparse symmetric or unsymmetric matrix = to make the -norms of all the rows and columns be approximately equal to 1. In the symmetric case, the scaling is symmetric. The matrix may be stored by columns, in the cooordinate format, or as a packed dense matrix. If , it uses the -norm. Otherwise, the user may choose any -norm, with .