Column/row-wise norm

Sorry if this has been posted a bunch but my googling has failed me.

I have a 2D array, and want to treat each row (or column) as a vector and find norm of it. I’m looking for something like N = vecnorm(A,p,dim) in matlab.

norm.(eachcol(a)) and norm.(eachrow(a)) maybe?

3 Likes