Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

API: Addcross tonumpy.linalg [Array API]#25145

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ngoldbaum merged 1 commit intonumpy:mainfrommtsokol:array-api-cross
Dec 5, 2023

Conversation

@mtsokol
Copy link
Member

This PR contains next Array API compatibility change. It adds numpy.linalg.cross (almost the same as numpy.cross) with docs taken from Array API specification.

@ngoldbaum
Copy link
Member

This looks good to me. xref#13718 for a little context.

It also looks like we've already deprecated the 2D cross product behavior:

In [2]: np.cross([1, 2], [2, 1])<ipython-input-2-eec728c54e9b>:1: DeprecationWarning: Arrays of 2-dimensional vectors are deprecated. Use arrays of 3-dimensional vectors instead. (deprecated in NumPy 2.0)  np.cross([1, 2], [2, 1])Out[2]: array(-3)

In it goes. Thanks@mtsokol!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@mtsokolmtsokol

Projects

None yet

Milestone

2.0.0 release

Development

Successfully merging this pull request may close these issues.

2 participants

@mtsokol@ngoldbaum

[8]ページ先頭

©2009-2025 Movatter.jp