Learning About Using Rust From Python via Tensor Toolbox
-
Pyttb is based on MATLAB. This is mostly a port from pyttb discarding the MATLAB. There isn't an attempt to maintain 1:1 compatibility.
-
We depend on ndarray and ndarray-linalg
- See details on ndarray-linalg to get that to build
- My path on ubuntu was:
- Install rustup
- For convenience (see ndarray for more options)
- apt install gfortran libopenblas-dev
- For code coverage
- apt install pkg-config libssl-dev
- cargo install cargo-tarpaulin
- Check it out
cargo tarpaulin --features=openblas-system --skip-clean --engine llvm --exclude-files 'py-tensor/**/*'
-
Python Bindings
- Python wrappings reside in ./py-tensor
- See pyO3 for more details.
- Easiest approach
- Create python env in preferred format
- cd py-tensor
- pip install -e .[dev]
- pytest tests