Skip to content

type dimensionless

kwikius edited this page Jul 28, 2020 · 19 revisions

| Home | Concepts | Types |

Signature

pqs::dimensionless

Header

#include <pqs/types/dimensionless.hpp>

Description

An instantiable type for representing dimensionlessness in dimensional analysis expressions.
https://en.wikipedia.org/wiki/Dimensional_analysis#Dimensionless_concepts

Notation

value type notes
a dimensionless constexpr
b dimensionless constexpr
r dimensionless constexpr
n std::intmax_t
d std::intmax_t
type_function result
get_exponent<dimensionless> std::ratio<0,1>
function result notes
pqs::dimensionless x; constexpr constructor
pqs::dimensionless y = x; constexpr copy ctor
pqs::dimensionless z;
z= x;
constexpr assignment
a * b r constexpr
a / b r constexpr
pow<n>(a) r constexpr
pow<n,d>(a) r constexpr
a == b true constexpr
a != b false constexpr
Clone this wiki locally