JuliaLang / JuliaLang/LinearAlgebra.jl

Norm along side axis

Open
#697 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
77
Forks
65
Avg merge
3d 23h
Merged PRs (30d)
10

Description

It would be nice if the `LinearAlgebra.norm` function have the `dims` keyword, like others linear algebra functions and like numpy norm axis parameter (https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.norm.html)

Just for example:
```
function norm(itr, p::Real=2; dims)
sum(itr.^p; dims=dims).^(1/p)
end
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.