NumCpp VS casadi

Compare NumCpp vs casadi and see what are their differences.

casadi

CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave. (by casadi)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
NumCpp casadi
4 4
3,370 1,538
- 3.5%
6.4 9.5
4 months ago 7 days ago
C++ C++
MIT License GNU Lesser General Public License v3.0 only
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.

NumCpp

Posts with mentions or reviews of NumCpp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-15.
  • Machine Learning using C++ vs Python
    1 project | /r/cpp_questions | 27 Dec 2021
    Yeah, as someone who writes C++ daily for their ML related job, I concur that the cost of executing a convolutions dwarves the overhead of calling from Python. So as much as I like C++ over Python (because static compilation to find little typos or type mismatches ahead of time is much nicer than exploding 5 minutes later into my batched vision recognition problem 😠), generally for small problems, Python is a nice quick and dirty approach. I do have my eye though on this little C++ numpy clone.
  • Can i use numpy with c or c++ ?
    1 project | /r/cpp | 7 Dec 2021
    Despite being written in C itself, the primary external API is for Python, and though it is possible to call via C, it's quite ungainly (several ref-counted Py_* calls and structs). It's probably easier to just consume a library that targets C++ directly like xtensor (https://xtensor.readthedocs.io/en/latest/numpy.html) or NumCpp (https://github.com/dpilger26/NumCpp).
  • trouble with linspace functions
    1 project | /r/cpp_questions | 27 Nov 2021
    I am trying to feed 2 different 3 column 1 row arrays into a linspace function using the NumCPP package, but i'm getting errors such as:
  • Read python pickle files in C++
    3 projects | /r/cpp_questions | 15 Aug 2021

casadi

Posts with mentions or reviews of casadi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-05.
  • pyomo VS casadi - a user suggested alternative
    2 projects | 5 Sep 2023
    Interface for several solvers and integrators.
  • (Direct) Collocation in (Time) Optimal Control
    1 project | /r/ControlTheory | 9 Dec 2022
    Howdy! Collocation methods can be... tricky. For NMPC control of vehicles, success has been had using direct multiple shooting. Also easier to implement and more intuitive. In fact, this example from the GH is pretty instructive: https://github.com/casadi/casadi/blob/master/docs/examples/python/race_car.py
  • Are there any optimization libraries/packages that use automatic differentiation?
    1 project | /r/optimization | 4 Nov 2021
    JuMP.jl (Julia) or casADi (Python) are good choices.
  • Should I switch over completely to Julia from Python for numerical analysis/computing?
    5 projects | /r/Julia | 8 Jul 2021
    Python is not mature in this area. If you ask Google what Simulink for Python is, you get responses that point to dead libraries that were never feature complete and slow. The absolute closest is CASADI which is nice for some things but doesn't even have a true causal modeling interface and is mostly abandoned by the developers (they put a patch in every now and then, but just look at the commit graph), and it's slow compared to the Julia tools, so much so that PyBAMM is interfacing with ModelingToolkit.jl in Julia for a performance boost. Python is not the place to be for causal/acausal modeling or controls. Anyone who is saying "Python is mature" here is saying it in the abstract and not in the context of your actual question. Yes, Python has web development frameworks. No it does not have good libraries for tons of areas (control, acausal modeling, pharmacometrics, etc.).

What are some alternatives?

When comparing NumCpp and casadi you can also consider the following projects:

eigen

ceres-solver - A large scale non-linear optimization library

RxCpp - Reactive Extensions for C++

ModelingToolkit.jl - An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning and automated transformations of differential equations

examples - Example data structures and algorithms

symbolic - A Symbolic Package for Octave using SymPy

vinum - Vinum is a SQL processor for Python, designed for data analysis workflows and in-memory analytics.

jsbsim - An open source flight dynamics & control software library

Data-Structures-and-Algorithms - Data Structures and Algorithms implemented In Python, C, C++, Java or any other languages. Aimed to help strengthen the concepts of DSA. Give a Star 🌟 if it helps you.

symforce - Fast symbolic computation, code generation, and nonlinear optimization for robotics

tuninglib - A C++ Class and Template Library for Performance Critical Applications

fricas - Official repository of the FriCAS computer algebra system