Skip to content

Learning About Using Rust From Python via Tensor Toolbox

Notifications You must be signed in to change notification settings

ntjohnson1/rusty_tensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coverage Status

rusty_tensor

Learning About Using Rust From Python via Tensor Toolbox

Thoughts

  1. 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.

  2. 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/**/*'
  3. 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

About

Learning About Using Rust From Python via Tensor Toolbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published