8000 PR: Convert array_object.md to rst by steff456 · Pull Request #345 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

PR: Convert array_object.md to rst #345

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 12 commits into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
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
Merge with main
  • Loading branch information
steff456 committed Jan 10, 2022
commit c657749ac1361f75041920bb1338301c3d945b08
4 changes: 2 additions & 2 deletions spec/API_specification/signatures/array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __and__(self: array, other: Union[int, bool, array], /) -> array:
- Element-wise results must equal the results returned by the equivalent element-wise function :ref:`function-bitwise_and`.
"""

def __array_namespace__(self: array, /, *, api_version: Optional[str] = None) -> object:
def __array_namespace__(self: array, /, *, api_version: Optional[str] = None) -> Any:
"""
Returns an object that has all the array API functions on it.

Expand All @@ -211,7 +211,7 @@ def __array_namespace__(self: array, /, *, api_version: Optional[str] = None) ->

Returns
-------
out: object
out: Any
an object representing the array API namespace. It should have every top-level function defined in the specification as an attribute. It may contain other public names as well, but it is recommended to only include those names that are part of the specification.
"""

Expand Down
2 changes: 1 addition & 1 deletion spec/extensions/linear_algebra_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ Returns the sum along the specified diagonals of a matrix (or a stack of matrice
The returned array must have the same data type as `x`.

(function-linalg-vecdot)=
### linalg.vecdot(x1, x2, /, *, axis=None)
### linalg.vecdot(x1, x2, /, *, axis=-1)

Alias for {ref}`function-vecdot`.

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0