Compute the L2 norm of each row of a matrix.
Given matrix of shape in row-major order, produce vector of length such that
Input
X- input matrix of shape stored in row-major order.n- the number of rows inX.m- the number of columns inX.
Output
Y- output vector of lengthnwhere each element is the L2 norm of the corresponding row ofX.