rust-ndarray VS PySCIPOpt

Compare rust-ndarray vs PySCIPOpt and see what are their differences.


ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations (by rust-ndarray)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Mergify - Updating dependencies is time-consuming.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
rust-ndarray PySCIPOpt
20 5
2,948 673
2.1% 1.8%
0.0 7.7
17 days ago about 2 months ago
Rust Cython
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of rust-ndarray. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-22.
  • Some Reasons to Avoid Cython
    5 projects | | 22 Sep 2023
    I would love some examples of how to do non-trivial data interop between Rust and Python. My experience is that PyO3/Maturin is excellent when converting between simple datatypes but conversions get difficult when there are non-standard types, e.g. Python Numpy arrays or Rust ndarrays or whatever other custom thing.

    Polars seems to have a good model where it uses the Arrow in memory format, which has implementations in Python and Rust, and makes a lot of the ndarray stuff easier. However, if the Rust libraries are not written with Arrow first, they become quite hard to work with. For example, there are many libraries written with, which is challenging to interop with Numpy.

    (I am not an expert at all, please correct me if my characterizations are wrong!)

  • faer 0.8.0 release
    6 projects | /r/rust | 21 Apr 2023
    Sadly Ndarray does look a little abandoned to me:
  • Status and Future of ndarray?
    2 projects | /r/rust | 3 Apr 2023
    The date of the last commit of [ndarray]( lies 6 month in the past while many recent issues are open and untouched.
  • Announcing Burn: New Deep Learning framework with CPU & GPU support using the newly stabilized GAT feature
    7 projects | /r/rust | 6 Nov 2022
    Burn is different: it is built around the Backend trait which encapsulates tensor primitives. Even the reverse mode automatic differentiation is just a backend that wraps another one using the decorator pattern. The goal is to make it very easy to create optimized backends and support different devices and use cases. For now, there are only 3 backends: NdArray ( for a pure rust solution, Tch ( for an easy access to CUDA and cuDNN optimized operations and the ADBackendDecorator making any backend differentiable. I am now refactoring the internal backend API to make it as easy as possible to plug in new ones.
  • Pure rust implementation for deep learning models
    3 projects | /r/rust | 9 Oct 2022
    Looks like it's an open request
  • The Illustrated Stable Diffusion
    3 projects | | 4 Oct 2022

    Answer: you can’t with this crate. I implemented a dynamic n-dim solution myself but it uses views of integer indices that get copied to a new array, which have indexes to another flattened array in order to avoid duplication of possibly massive amounts of n-dimensional data; using the crate alone, copying all the array data would be unavoidable.

    Ultimately I’ve had to make my own axis shifting and windowing mechanisms. But the crate is still a useful lib and continuing effort.

    While I don’t mind getting into the weeds, these kinds of side efforts can really impact context focus so it’s just something to be aware of.

  • Any efficient way of splitting vector?
    2 projects | /r/rust | 12 Sep 2022
    In principle you're trying to convert between columnar and row-based data layouts, something that happens fairly often in data science. I bet there's some hyper-efficient SIMD magic that could be invoked for these slicing operations (and maybe the iterator solution does exactly that). Might be worth taking a look at how the relevant Rust libraries like ndarray do it.
  • Rust or C/C++ to learn as a secondary language?
    6 projects | /r/Python | 9 Feb 2022
    ndarray and numpy crates provide good way to operate on numpy ndarrays from python
  • Enzyme: Towards state-of-the-art AutoDiff in Rust
    3 projects | /r/rust | 12 Dec 2021
    I don't think any of the major ML projects have GPU acceleration because ndarray doesn't support it.
  • Announcing Rust CUDA 0.2
    3 projects | /r/rust | 5 Dec 2021
    Not sure about ndarray:


Posts with mentions or reviews of PySCIPOpt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-09.
  • Rust or C/C++ to learn as a secondary language?
    6 projects | /r/Python | 9 Feb 2022
    It’s impossible to recommend the right tool for the job, and honestly, depending on how much maths you know it might be hard to make progress, but I’d put money on a constraint solver reducing the time from hours to seconds. Can recommend this one
  • Python open-source solvers
    4 projects | /r/OperationsResearch | 3 Jun 2021
    I guess that pySCIP might be what you are looking for. Note that SCIP only supports linear objectives. However, since quadratic constraints are supported, you can easily use an auxiliary constraint to present the objective, e.g. min z s.t. z <= x*x.

What are some alternatives?

When comparing rust-ndarray and PySCIPOpt you can also consider the following projects:

nalgebra - Linear algebra library for Rust.

Rust-CUDA - Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.

pyomo - An object-oriented algebraic modeling language in Python for structured optimization problems.

pulp - A python Linear Programming API

image - Encoding and decoding images in Rust

neuronika - Tensors and dynamic neural networks in pure Rust.

utah - Dataframe structure and operations in Rust

linfa - A Rust machine learning framework.

dasp - The fundamentals for Digital Audio Signal Processing. Formerly `sample`.

nshare - Provides an interface layer to convert between n-dimensional types in different Rust crates

Bonmin - Basic Open-source Nonlinear Mixed INteger programming

fundsp - Library for audio processing and synthesis