GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • Math

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com โ€” Klein Alternatives - C++ Math | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

Klein

P(R*_{3, 0, 1}) specialized SIMD Geometric Algebra Library

DISCONTINUED. You can find some alternatives below.
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey ยป
Popularity
4.6
Stable
Activity
0.0
Stable
Stars 742
Watchers 44
Forks 56
Last Commit over 2 years ago

Description

Klein is an implementation of P(R*_{3, 0, 1}), aka 3D Projective Geometric Algebra. It is designed for applications that demand high-throughput (animation libraries, kinematic solvers, etc). In contrast to other GA libraries, Klein does not attempt to generalize the metric or dimensionality of the space. In exchange for this loss of generality, Klein implements the algebraic operations using the full weight of SSE (Streaming SIMD Extensions) for maximum throughput.

Programming language: C++
License: MIT License
Tags: Game Engine     Graphics     Math     Scientific Computing     Animation     C++11     C++14     C++17     Geometry    
Latest version: v2.2.1

Klein alternatives and similar libraries

Based on the "Math" category.
Alternatively, view Klein alternatives based on common mentions on social networks and blogs.

  • GLM

    9.2 7.8 L1 Klein VS GLM
    OpenGL Mathematics (GLM)
    g-truc logo
  • QuantLib

    8.9 9.9 L1 Klein VS QuantLib
    The QuantLib C++ library
    lballabio logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • OpenBLAS

    8.7 9.9 Klein VS OpenBLAS
    OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
    OpenMathLib logo
  • CGal

    8.5 9.9 L1 Klein VS CGal
    The public CGAL repository, see the README below
    CGAL logo
  • ceres-solver

    8.2 9.1 L1 Klein VS ceres-solver
    A large scale non-linear optimization library
    ceres-solver logo
  • Eigen

    7.1 - Klein VS Eigen
    A high-level C++ library of template headers for linear algebra, matrix and vector operations, numerical solvers and related algorithms. [MPL2]
  • TinyExpr

    6.6 7.2 L4 Klein VS TinyExpr
    tiny recursive descent expression parser, compiler, and evaluation engine for math expressions
    codeplea logo
  • Vc

    6.0 3.6 L1 Klein VS Vc
    SIMD Vector Classes for C++
    VcDevel logo
  • ExprTK

    5.8 0.0 L1 Klein VS ExprTK
    C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html
    ArashPartow logo
  • linmath.h

    5.3 0.0 Klein VS linmath.h
    a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
    datenwolf logo
  • HLSL++

    5.2 7.4 Klein VS HLSL++
    Math library using HLSL syntax with multiplatform SIMD support
    redorav logo
  • MIRACL

    5.2 0.0 L1 Klein VS MIRACL
    MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
    miracl logo
  • LibTomMath

    5.2 6.7 L2 Klein VS LibTomMath
    LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.
    libtom logo
  • NT2

    5.0 5.6 Klein VS NT2
    DISCONTINUED. A SIMD-optimized numerical template library that provides an interface with MATLAB-like syntax. [Boost]
  • muparser

    4.5 6.6 L1 Klein VS muparser
    muparser is a fast math parser library for C/C++ with (optional) OpenMP support.
    beltoforion logo
  • GMTL

    3.8 0.0 L1 Klein VS GMTL
    Generic Math Template Library (forked from http://ggt.sourceforge.net/)
    imvu logo
  • Boost.Multiprecision

    3.8 6.6 L1 Klein VS Boost.Multiprecision
    Boost.Multiprecision
    boostorg logo
  • safe_numerics

    3.4 3.1 Klein VS safe_numerics
    Replacements to standard numeric types which throw exceptions on errors
    boostorg logo
  • Apophenia

    3.2 2.0 L2 Klein VS Apophenia
    A C library for statistical and scientific computing
    b-k logo
  • Wykobi

    3.2 0.0 Klein VS Wykobi
    Wykobi C++ Computational Geometry Library https://www.wykobi.com
    ArashPartow logo
  • blaze

    3.1 - Klein VS blaze
    high-performance C++ math library for dense and sparse arithmetic. [BSD]
  • Versor

    1.8 0.0 Klein VS Versor
    [older version] Versor 1.0 C++ library for conformal geometric algebra draw routines
    wolftype logo
  • SLIMCPP

    1.7 4.9 Klein VS SLIMCPP
    Simple Long Integer Math for C++. Lightweight cross-platform header-only library what implements big integer arithmetic in ะก++17.
    devatrun logo
  • metamath

    1.7 0.0 Klein VS metamath
    Meta mathematics. Symbolic functions and derivatives.
    egladysh logo
  • Xerus

    1.6 0.0 Klein VS Xerus
    A general purpose library for numerical calculations with higher order tensors, Tensor-Train Decompositions / Matrix Product States and other Tensor Networks
    libxerus logo
  • Mission : Impossible (AutoDiff)

    1.4 0.0 Klein VS Mission : Impossible (AutoDiff)
    A concise C++17 implementation of automatic differentiation (operator overloading)
    vincent-picaud logo
  • ceval

    1.4 0.0 Klein VS ceval
    A C/C++ library for parsing and evaluation of arithmetic expressions.
    erstan logo
  • macadam

    0.9 0.0 Klein VS macadam
    DISCONTINUED. Numerical library. Complete BLAS. Hybrid cpp98/cpp11 c99/c11
  • Armadillo

    - Klein VS Armadillo
    A high quality C++ linear algebra library, aiming towards a good balance between speed and ease of use. The syntax (API) is deliberately similar to Matlab. [MPL2]
  • GMP

    - Klein VS GMP
    A C/C++ library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. [LGPL3 & GPL2]

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of Klein or a related project?

Add another 'Math' Library

Popular Comparisons

  • Klein
    vs
    GLM
  • Klein
    vs
    CGal
  • Klein
    vs
    ceres-solver
  • Klein
    vs
    Eigen
  • Klein
    vs
    GMP

README

Klein

License: MIT DOI

Build Status Build Status Coverity Status Codacy Badge

๐Ÿ‘‰๐Ÿ‘‰ Project Site ๐Ÿ‘ˆ๐Ÿ‘ˆ

Description

Do you need to do any of the following? Quickly? Really quickly even?

  • Projecting points onto lines, lines to planes, points to planes?
  • Measuring distances and angles between points, lines, and planes?
  • Rotate or translate points, lines, and planes?
  • Perform smooth rigid body transforms? Interpolate them smoothly?
  • Construct lines from points? Planes from points? Planes from a line and a point?
  • Intersect planes to form lines? Intersect a planes and lines to form points?

If so, then Klein is the library for you!

Klein is an implementation of P(R*_{3, 0, 1}), aka 3D Projective Geometric Algebra. It is designed for applications that demand high-throughput (animation libraries, kinematic solvers, etc). In contrast to other GA libraries, Klein does not attempt to generalize the metric or dimensionality of the space. In exchange for this loss of generality, Klein implements the algebraic operations using the full weight of SSE (Streaming SIMD Extensions) for maximum throughput.

Requirements

  • Machine with a processor that supports SSE3 or later (Steam hardware survey reports 100% market penetration)
  • C++11/14/17 compliant compiler (tested with GCC 9.2.1, Clang 9.0.1, and Visual Studio 2019)
  • Optional SSE4.1 support

Usage

You have two options to use Klein in your codebase. First, you can simply copy the contents of the public folder somewhere in your include path. Alternatively, you can include this entire project in your source tree, and using cmake, add_subdirectory(Klein) and link the klein::klein interface target.

In your code, there is a single header to include via #include <klein/klein.hpp>, at which point you can create planes, points, lines, ideal lines, bivectors, motors, directions, and use their operations. Please refer to the project site for the most up-to-date documentation.

Motivation

PGA fully streamlines traditionally used quaternions, and dual-quaternions in a single algebra. Normally, the onus is on the user to perform appropriate casts and ensure signs and memory layout are accounted for. Here, all types are unified within the geometric algebra, and operations such as applying quaternion or dual-quaternions (rotor/motor) to planes, points, and lines make sense. There is a surprising amount of uniformity in the algebra, which enables efficient implementation, a simple API, and reduced code size.

Performance Considerations

It is known that a "better" way to vectorize computation in general is to arrange the data in an SoA layout to avoid unnecessary cross-lane arithmetic or unnecessary shuffling. PGA is unique in that a given PGA multivector has a natural decomposition into 4 blocks of 4 floating-point quantities. For the even sub-algebra (isomorphic to the space of dual-quaternions) also known as the motor algebra, the geometric product can be densely packed and implemented efficiently using SSE.

References

Klein is deeply indebted to several members of the GA community and their work. Beyond the works cited here, the author stands of the shoulders of giants (Felix Klein, Sophus Lie, Arthur Cayley, William Rowan Hamilton, Julius Plรผcker, and William Kingdon Clifford, among others).

[1] Gunn, Charles G. (2019). Course notes Geometric Algebra for Computer Graphics, SIGGRAPH 2019. arXiv link

[2] Steven De Keninck and Charles Gunn. (2019). SIGGRAPH 2019 Geometric Algebra Course. youtube link

[3] Leo Dorst, Daniel Fontijne, Stephen Mann. (2007) Geometric Algebra for Computer Science. Burlington, MA: Morgan Kaufmann Publishers Inc.


*Note that all licence references and agreements mentioned in the Klein README section above are relevant to that project's source code only.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.