Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Escape markup
  • Loading branch information
kgryte committed Aug 25, 2020
commit 2ab06d503174cd46995e3e768b099bb8a630d22d
12 changes: 6 additions & 6 deletions spec/API_specification/linear_algebra_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ Computes the matrix or vector norm of `a`.

The following non-mathematical "norms" must be supported:

| ord | matrix | vector |
| ---------------- | ------------------------------- | -------------------------- |
| 0 | - | sum(a != 0) |
| -1 | min(sum(abs(x), axis=0)) | sum(1./abs(a))**(-1) |
| -2 | smallest singular value | 1./sqrt(sum(1./abs(a)**2)) |
| -inf | min(sum(abs(x), axis=1)) | min(abs(a)) |
| ord | matrix | vector |
| ---------------- | ------------------------------- | ------------------------------ |
| 0 | - | sum(a != 0) |
| -1 | min(sum(abs(x), axis=0)) | 1./sum(1./abs(a)) |
| -2 | smallest singular value | 1./sqrt(sum(1./abs(a)\*\*2)) |
| -inf | min(sum(abs(x), axis=1)) | min(abs(a)) |
| (int,float < 1) | - | sum(abs(a)\*\*ord)\*\*(1./ord) |

When `ord` is `None`, the following norms must be the default norms:
Expand Down