I have a 2D array, and want to treat each row (or column) as a vector and find norm of it

```
a = [1 2 3 ; 4 5 6]
```

```
a
2×3 Array{Int64,2}:
1 2 3
4 5 6
```

The following is what I have tried and their results.

Both `norm.(a)`

and `vecnorm.(a)`

gives

```
2×3 Array{Int64,2}:
1 2 3
4 5 6
```

While `norm(a)`

gives `9.508032000695724`

and `vecnorm(a)`

gives `9.539392014169456`

For now, to get what I want, I have to do the following

```
a = [[1,2,3],[4, 5, 6]]
a
2-element Array{Array{Int64,1},1}:
[1, 2, 3]
[4, 5, 6]
```

Then, both `norm.`

and `vecnorm.`

works

```
vecnorm.(a)
norm.(a)
```

gives

```
2-element Array{Float64,1}:
3.74166
8.77496
```

I would like to know how can I have something similar to this matlab example directly from a 2D array.