Warning, /acts/docs/core/definitions/algebra.rst is written in an unsupported language. File is not indexed.
0001 Algebra definitions
0002 ===================
0003
0004 The main algebra classes for ACTS are defined in the `Acts/Definitions/Algebra.hpp` header file.
0005 The basic scalar type can be defined via this file and is set per default to `double`, however, if `ACTS_CUSTOM_SCALAR` is set it will be used instead.
0006
0007 .. code-block:: cpp
0008
0009 #ifdef ACTS_CUSTOM_SCALAR
0010 using ActsScalar = ACTS_CUSTOM_SCALAR;
0011 #else
0012 using ActsScalar = double;
0013 #endif
0014
0015 It is recommended within the code to deduce the Scalar type from the Event Data object, e.g.
0016
0017 .. code-block:: cpp
0018
0019 using Scalar = Vector3::Scalar;
0020
0021 Currently only the `Core` package builds with `float` precision.