|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
#include <concepts>#include <ostream>#include <tuple>#include <type_traits>#include <utility>#include "wuzp/core/Absolute.hpp"#include "wuzp/core/CoordinateSystem.hpp"#include "wuzp/core/Integer.hpp"#include "wuzp/core/MatrixSize.hpp"#include "wuzp/core/Rational.hpp"#include "wuzp/core/TypeMatrix.hpp"#include "wuzp/core/Unit.hpp"#include "wuzp/core/helpers.hpp"#include "wuzp/core/traits.hpp"Go to the source code of this file.
Namespaces | |
| namespace | wuzp |
Concepts | |
| concept | wuzp::AnyCoordinateSystem |
| Any coordinate system: a specialization of CoordinateSystem, including the intermediate ones of transformations. | |
| concept | wuzp::EuclideanCoordinateSystem |
| A coordinate system with the Euclidean metric, the default, e.g. CoordinateSystem<World>: the coordinate system of rotations and proper rigid transformations, whose orthogonality is defined by this metric (see Metric). | |
| concept | wuzp::MinkowskiCoordinateSystem |
| A coordinate system with the Minkowski metric, e.g. CoordinateSystem<Spacetime, Minkowski>: an inertial frame of special relativity, in which spacetime vectors are expressed and between which Lorentz transformations transform (see Metric). | |
| concept | wuzp::AbsoluteOrRelative |
| Absolute or Relative: whether a tensor is a point or a vector. | |
| concept | wuzp::AnyUnit |
| Any unit of any units backend: a specialization of Unit. | |
| concept | wuzp::AnyUnitMatrix |
| Any unit matrix: a TypeMatrix of units. | |
| concept | wuzp::AnyMatrixSize |
| Any size of a matrix: a MatrixSize with rows and columns. | |
| concept | wuzp::ArithmeticValue |
| An arithmetic type, e.g. int, float or double: the type of the elements of value matrices. | |
| concept | wuzp::AnyValuesWrapper |
| Any value matrix: a specialization of ValuesWrapper. | |
| concept | wuzp::AnyValueMatrix |
| The alias template ValueMatrix<ValueT_, RowsV_, ColsV_> of any value matrix backend, e.g. wuzp_eigen::ValueMatrix, rather than e.g. the matrices of its linear algebra library. | |
| concept | wuzp::AnyQuantities |
| Any quantity matrix: a specialization of Quantities, including Quantity. | |
| concept | wuzp::UpOrDown |
| Up or Down: whether an index of a tensor is upper (contravariant) or lower (covariant). | |
| concept | wuzp::AnyIndices |
| Any indices of a tensor: a specialization of Indices, e.g. Indices<Up, Down>. | |
| concept | wuzp::AnyTensor |
| Any tensor: a specialization of Tensor, including points, vectors and their aliases. | |
| concept | wuzp::ValueMatrixBackend |
| A value matrix backend, given as its alias template ValueMatrix<ValueT_, RowsV_, ColsV_>, e.g. wuzp_eigen::ValueMatrix: its value matrices are ValuesWrappers of the given value type and size, and it specializes the traits the core needs for their implementation types. | |
| concept | wuzp::InvertibleValueMatrixBackend |
| A value matrix backend that also provides the matrix inverse (Inverse) of floating point matrices, and the determinant (Determinant) of floating point and integer matrices: the core rejects the inverse of an integer matrix, which is not an integer matrix in general, but not its determinant (see "Inverses and determinants" in DESIGN.md). | |
| concept | wuzp::UnitSystem |
| The units of a units backend, e.g. AccessUnits<AccessImplementation<double>>: the base and derived units that the core and its aliases use, e.g. Length and Force, which are consistent with the arithmetic traits of the backend, Product, Division, Power (with rational exponents), Inverse and Identity, e.g. Velocity is Length divided by Time, and also AngularVelocity times Length, for the transport formulas of rigid body kinematics, e.g. w x r. | |