diff options
author | Nao Pross <np@0hm.ch> | 2024-06-04 17:53:02 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-06-04 17:53:02 +0200 |
commit | 5c5268d2adfa3dfb6fb1426ac3d59d08c9e36d2b (patch) | |
tree | 14cb5df7a8af9b54dca3d8bf4e0ca11725f02193 /examples/main.py | |
parent | Introduce PolyMatrix.variables() to retrieve all variables (diff) | |
download | polymatrix-5c5268d2adfa3dfb6fb1426ac3d59d08c9e36d2b.tar.gz polymatrix-5c5268d2adfa3dfb6fb1426ac3d59d08c9e36d2b.zip |
Separate symbols from variables to avoid shape problems
Variables are now expression that have a shape and contain a symbol.
The symbol in its own is not a variable, as the shape is unknown, but
this information can is stored in the state object. So it is possible
to reconstruct a variable by doing
init_variable_expr(sym, state.get_shape(sym))
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions