Units VS GSL

Compare Units vs GSL and see what are their differences.


A run-time C++ library for working with units of measurement and conversions between them and with string representations of units and measurements (by LLNL)


GNU Scientific Library with CMake build support and AMPL bindings (by ampl)
Our great sponsors
  • Sonar - Free webinar: The Power of Clean C++
  • Zigi - Close all those tabs. Zigi will handle your updates.
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
Units GSL
1 4
111 434
0.9% 2.1%
7.7 1.3
4 days ago about 2 months ago
C++ C
BSD 3-clause "New" or "Revised" License GNU 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.


Posts with mentions or reviews of Units. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning Units yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of GSL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-22.
  • C++ for numerical programming
    4 projects | reddit.com/r/cpp_questions | 22 Jun 2021
    Some time ago, I started on a similar journey. Started with https://www.gnu.org/software/gsl/
  • C++ learning advice
    3 projects | reddit.com/r/cpp | 5 Apr 2021
    I might recommend exploring some libraries that could be used. GSL https://www.gnu.org/software/gsl/ is an example. This might be an equivalent of NumPy.
  • C Deep
    80 projects | dev.to | 27 Feb 2021
    GSL - The GNU Scientific Library; a sophisticated numerical library. GPL-3.0-only.

What are some alternatives?

When comparing Units and GSL you can also consider the following projects:


Torch - http://torch.ch

Blitz++ - Git mirror of Blitz++ at http://sourceforge.net/projects/blitz/

Trilinos - Primary repository for the Trilinos Project

Dimwits - A compact C++ header-only library providing compile-time dimensional analysis and unit awareness

HELICS - Hierarchical Engine for Large-scale Infrastructure Co-Simulation (HELICS)

Kratos - Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.

preCICE - A coupling library for partitioned multi-physics simulations, including, but not restricted to fluid-structure interaction and conjugate heat transfer simulations.