1
- |Tests Status | |Coverage | | Gitter |
1
+ |Tests Status | |Coverage |
2
2
3
- |Project Name | is a fork of Aesara -- a Python library that allows one to define, optimize, and
4
- efficiently evaluate mathematical expressions involving multi-dimensional
5
- arrays.
3
+ |Project Name | is a fork of `Aesara<https://github.com/aesara-devs/aesara> `__ -- a Python library that allows one to define, optimize, and
4
+ efficiently evaluate mathematical expressions involving multi-dimensional arrays.
6
5
7
6
Features
8
7
========
@@ -19,11 +18,11 @@ Getting started
19
18
.. code-block :: python
20
19
21
20
import pytensor
22
- from pytensor import tensor as at
21
+ from pytensor import tensor as pt
23
22
24
23
# Declare two symbolic floating-point scalars
25
- a = at .dscalar(" a" )
26
- b = at .dscalar(" b" )
24
+ a = pt .dscalar(" a" )
25
+ b = pt .dscalar(" b" )
27
26
28
27
# Create a simple example expression
29
28
c = a + b
@@ -45,8 +44,8 @@ Getting started
45
44
# expression graphs by removing unnecessary operations and
46
45
# replacing computations with more efficient ones.
47
46
48
- v = at .vector(" v" )
49
- M = at .matrix(" M" )
47
+ v = pt .vector(" v" )
48
+ M = pt .matrix(" M" )
50
49
51
50
d = a/ a + (M + a).dot(v)
52
51
@@ -131,5 +130,3 @@ Special thanks to `Bram Timmer <http://beside.ca>`__ for the logo.
131
130
:target: https://github.com/pymc-devs/pytensor/actions?query=workflow%3ATests
132
131
.. |Coverage | image :: https://codecov.io/gh/pymc-devs/pytensor/branch/main/graph/badge.svg?token=WVwr8nZYmc
133
132
:target: https://codecov.io/gh/pymc-devs/pytensor
134
- .. |Gitter | image :: https://badges.gitter.im/pymc-devs/pytensor.svg
135
- :target: https://gitter.im/pymc-devs/pytensor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
0 commit comments