R/utils.R
NormaliseL2.Rd
Normalise the rows or columns of a matrix using L2 norm
NormaliseL2(mat, MARGIN = 1)
a matrix (sparse or dense)
one of 1 or 2, corresponding to normalisation per rows and columns respectively
the matrix with normalised rows or columns
Adapted from Seurat:::L2Norm