xtensor VS Fastor

Compare xtensor vs Fastor and see what are their differences.

xtensor

C++ tensors with broadcasting and lazy computing (by xtensor-stack)

Fastor

A lightweight high performance tensor algebra framework for modern C++ (by romeric)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
xtensor Fastor
8 5
3,205 702
1.7% -
7.9 4.3
9 days ago 14 days ago
C++ C++
BSD 3-clause "New" or "Revised" License 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.

xtensor

Posts with mentions or reviews of xtensor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-07.

Fastor

Posts with mentions or reviews of Fastor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-09.
  • Standard way of doing maths with arrays?
    2 projects | /r/cpp_questions | 9 Mar 2023
    I'm going to throw in a recommendation for Fastor. It is generally faster than other libraries, is very lightweight, and has a pretty modern syntax.
  • LibRapid -- High Performance Arrays for C++
    4 projects | /r/cpp | 9 Feb 2023
  • From Julia to C++ Struggle
    5 projects | /r/Julia | 9 Feb 2022
    There are C++ libraries that deal with linear algebra and tensors that are able to produce fully vectorized code without requiring you to mess around with SIMD intrinsics. See, for instance, fastor, blaze, eigen and the huge Trillinos set of packages. C++ is very widely used when it comes to scientific HPC applications. All you need to do is google search or better yet, join r/cpp and r/cpp_questions and start asking away for the things you need. The C++ community is very welcoming and full of experts that will be able to help you.
  • Use of BLAS vs direct SIMD for linear algebra library operations?
    3 projects | /r/cpp | 28 Aug 2021
    Picking what size you are targeting is really important, though. Could the matrices you are working with realistically be bigger than say 32x32? BLAS is good for big matrices. It's not as great for small matrices. Eigen or Fastor will do better for these smaller problems. And for various common operations on sizes 2, 3, and 4, hand coded graphics-oriented libraries might outperform those.
  • Scientific computing in Cpp
    2 projects | /r/cpp | 18 Feb 2021
    Tensorflow, Machine learning: https://www.tensorflow.org/ Fastor, A tensor library: https://github.com/romeric/Fastor GNU Scientific Library(GSL): https://www.gnu.org/software/gsl/ Boost. FEniCS, A finite element library: https://fenicsproject.org/ Intel MKL, a BLAS+LAPACK+other goodies library: https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html SuiteSparse, A sparse linear algebra library: http://faculty.cse.tamu.edu/davis/suitesparse.html Sundials, Nonlinear solvers: https://computing.llnl.gov/projects/sundials

What are some alternatives?

When comparing xtensor and Fastor you can also consider the following projects:

EA Standard Template Library - EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance.

DirectXMath - DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps

dynarray - A header-only library, VLA for C++ (≥C++14). Extended version of std::experimental::dynarray

SwiftyWasmer - A Swift API for the Wasmer WebAssembly Runtime

ITensors.jl - A Julia library for efficient tensor computations and tensor network calculations

GLM - OpenGL Mathematics (GLM)

sundials - Official development repository for SUNDIALS - a SUite of Nonlinear and DIfferential/ALgebraic equation Solvers. Pull requests are welcome for bug fixes and minor changes.

pinocchio - A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives

SPTK - A suite of speech signal processing tools

Pytorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration

ArrayFire - ArrayFire: a general purpose GPU library.