https://github.com/iskandr/ndtypes
Types for describing n-dimensional arrays and index expressions
https://github.com/iskandr/ndtypes
Last synced: 10 months ago
JSON representation
Types for describing n-dimensional arrays and index expressions
- Host: GitHub
- URL: https://github.com/iskandr/ndtypes
- Owner: iskandr
- License: other
- Created: 2013-07-07T05:41:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T18:19:00.000Z (almost 13 years ago)
- Last Synced: 2025-03-24T08:23:57.998Z (over 1 year ago)
- Language: Python
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ndtypes
========
Types for array-oriented domain-specific languages embedded in Python. Includes n-dimensional arrays, their scalar elements, and for index expressions: tuples, slices, and None.
Factored out of Parakeet, excluding function and closure types.
```
ScalarType = int8 ... int64 | uint8 ... uint64 | float32 | float64 | bool
ArrayType = Array(ScalarType, rank), where rank is an integer >= 1
Type = ScalarType | ArrayType | Tuple(Type+) | Slice | None
```