8000 Add initial linear algebra function specifications by kgryte · Pull Request #20 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

Add initial linear algebra function specifications #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

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
8000
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
0