|
Stratax 0.3.1
|
Workflow-focused examples for trying the current Stratax APIs from C++ and Python.
Each example is intentionally detailed enough to show the normal path through a container: construction, metadata, element access, iteration or slicing, reshape/conversion helpers, and reductions where applicable. They are still kept small enough to run and inspect quickly.
The C++ examples live under examples/cpp.
| File | Focus |
|---|---|
examples/cpp/vector.cpp | Vector construction, indexing, arithmetic, and slicing |
examples/cpp/matrix.cpp | Matrix construction, element access, and operations |
examples/cpp/tensor.cpp | Tensor construction, shape-aware access, and slicing |
examples/cpp/shape.cpp | Shape metadata basics |
Stratax is header-first. Point your target at the repository include directory and compile with C++20 enabled:
The Python examples live under examples/python.
| File | Focus |
|---|---|
examples/python/vector.py | Vector construction, indexing, arithmetic, and slicing |
examples/python/matrix.py | Matrix construction, element access, and operations |
examples/python/tensor.py | Tensor construction, shape-aware access, and slicing |
examples/python/shape.py | Shape metadata basics |
After installing the package, run examples from the repository root:
double container specializations.