Normalises a matrix towards unit p norm row wise or column wise. By default, p = 2 is used. To normalise row wise, use axis=0. To normalise column wise, use axis=1. as the square root of sum of square of values in the given vector.
normalise2d(mat, pnorm = 2L, axis = 1L)
numeric matrix
integer value, default value=2
integer (0 or 1), row wise = 0, column wise = 1
normalised numeric matrix