Skip to content

Commit d23febb

Browse files
authored
Merge pull request #367 from steff456/linalg-rst
PR: Transform linear algebra functions md to rst
2 parents 1d9ee15 + 5221c70 commit d23febb

File tree

7 files changed

+149
-150
lines changed

7 files changed

+149
-150
lines changed

.circleci/config.yml

+2-2
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

+1-1
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/linear_algebra_functions.md

-142
This file was deleted.
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

spec/API_specification/signatures/array_object.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def __matmul__(self: array, other: array, /) -> array:
614614
615615
616616
.. note::
617-
Results must equal the results returned by the equivalent function :ref:`function-matmul`.
617+
Results must equal the results returned by the equivalent function :func:`signatures.linear_algebra_functions.matmul`.
618618
619619
**Raises**
620620

0 commit comments

Comments
 (0)