Skip to content

Commit 587b442

Browse files
committed
Merge remote-tracking branch 'upstream/main' into ext-linalg-rst
2 parents cbbab62 + 0beb81b commit 587b442

26 files changed

+3205
-2732
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _defaults: &defaults
55
docker:
66
# CircleCI maintains a library of pre-built images
77
# documented at https://circleci.com/docs/2.0/circleci-images/
8-
- image: circleci/python:3.8.0
8+
- image: cimg/python:3.10.2
99
working_directory: ~/repo
1010

1111
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
name: build docs
2020
no_output_timeout: 25m
2121
command: |
22-
sudo pip install -r requirements.txt
22+
pip install -r requirements.txt
2323
sphinx-build -b html -WT --keep-going spec build/latest -d doctrees
2424
- store_artifacts:
2525
path: build/latest

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@master
1616
- uses: actions/setup-python@v2
1717
with:
18-
python-version: '3.8' # Version range or exact version of a Python version to use, using semvers version range syntax.
18+
python-version: '3.10.2' # Version range or exact version of a Python version to use, using semvers version range syntax.
1919
architecture: 'x64' # (x64 or x86)
2020
- run: |
2121
# add dependencies based on the conf.py

spec/API_specification/elementwise_functions.md

Lines changed: 0 additions & 1556 deletions
This file was deleted.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
.. _element-wise-functions:
2+
3+
Element-wise Functions
4+
======================
5+
6+
Array API specification for element-wise functions.
7+
8+
A conforming implementation of the array API standard must provide and support the following functions adhering to the following conventions.
9+
10+
- Positional parameters must be `positional-only <https://www.python.org/dev/peps/pep-0570/>`_ parameters. Positional-only parameters have no externally-usable name. When a function accepting positional-only parameters is called, positional arguments are mapped to these parameters based solely on their order.
11+
- Optional parameters must be `keyword-only <https://www.python.org/dev/peps/pep-3102/>`_ arguments.
12+
- Broadcasting semantics must follow the semantics defined in :ref:`broadcasting`.
13+
- Unless stated otherwise, functions must support the data types defined in :ref:`data-types`.
14+
- Functions may only be required for a subset of input data type. Libraries may choose to implement functions for additional data types, but that behavior is not required by the specification. See :ref:`data-type-categories`.
15+
- Unless stated otherwise, functions must adhere to the type promotion rules defined in :ref:`type-promotion`.
16+
- Unless stated otherwise, floating-point operations must adhere to IEEE 754-2019.
17+
- Unless stated otherwise, element-wise mathematical functions must satisfy the minimum accuracy requirements defined in :ref:`accuracy`.
18+
19+
Objects in API
20+
--------------
21+
22+
.. currentmodule:: signatures.elementwise_functions
23+
24+
..
25+
NOTE: please keep the functions in alphabetical order
26+
27+
.. autosummary::
28+
:toctree: generated
29+
:template: method.rst
30+
31+
abs
32+
acos
33+
acosh
34+
add
35+
asin
36+
asinh
37+
atan
38+
atan2
39+
atanh
40+
bitwise_and
41+
bitwise_left_shift
42+
bitwise_invert
43+
bitwise_or
44+
bitwise_right_shift
45+
bitwise_xor
46+
ceil
47+
cos
48+
cosh
49+
divide
50+
equal
51+
exp
52+
expm1
53+
floor
54+
floor_divide
55+
greater
56+
greater_equal
57+
isfinite
58+
isinf
59+
isnan
60+
less
61+
less_equal
62+
log
63+
log1p
64+
log2
65+
log10
66+
logaddexp
67+
logical_and
68+
logical_not
69+
logical_or
70+
logical_xor
71+
multiply
72+
negative
73+
not_equal
74+
positive
75+
pow
76+
remainder
77+
round
78+
sign
79+
sin
80+
sinh
81+
square
82+
sqrt
83+
subtract
84+
tan
85+
tanh
86+
trunc

spec/API_specification/linear_algebra_functions.md

Lines changed: 0 additions & 142 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Linear Algebra Functions
2+
========================
3+
4+
Array API specification for linear algebra functions.
5+
6+
A conforming implementation of the array API standard must provide and support the following functions adhering to the following conventions.
7+
8+
* Positional parameters must be `positional-only <https://www.python.org/dev/peps/pep-0570/>`_ parameters. Positional-only parameters have no externally-usable name. When a function accepting positional-only parameters is called, positional arguments are mapped to these parameters based solely on their order.
9+
* Optional parameters must be `keyword-only <https://www.python.org/dev/peps/pep-3102/>`_ arguments.
10+
* Broadcasting semantics must follow the semantics defined in :ref:`broadcasting`.
11+
* Unless stated otherwise, functions must support the data types defined in :ref:`data-types`.
12+
* Unless stated otherwise, functions must adhere to the type promotion rules defined in :ref:`type-promotion`.
13+
* Unless stated otherwise, floating-point operations must adhere to IEEE 754-2019.
14+
15+
.. currentmodule:: signatures.linear_algebra_functions
16+
17+
Objects in API
18+
--------------
19+
..
20+
NOTE: please keep the functions in alphabetical order
21+
22+
.. autosummary::
23+
:toctree: generated
24+
:template: method.rst
25+
26+
matmul
27+
matrix_transpose
28+
tensordot
29+
vecdot

0 commit comments

Comments
 (0)