Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamunits::Unit< Tscal > Struct Template Reference

A unit: its dimension and its magnitude expressed in SI base units, in precision Tscal. More...

#include <shamunits/include/shamunits/Unit.hpp>

Collaboration diagram for shamunits::Unit< Tscal >:

Public Member Functions

constexpr bool operator== (const Unit &) const =default
 Exact equality of dimension and factor.

Public Attributes

Dimension dim {}
 SI dimension.
Tscal si_factor = 1
 value of one of this unit in SI base units

Detailed Description

template<class Tscal = double>
struct shamunits::Unit< Tscal >

A unit: its dimension and its magnitude expressed in SI base units, in precision Tscal.

Definition at line 89 of file Unit.hpp.

Member Data Documentation

◆ dim

template<class Tscal = double>
Dimension shamunits::Unit< Tscal >::dim {}

SI dimension.

Definition at line 90 of file Unit.hpp.

◆ si_factor

template<class Tscal = double>
Tscal shamunits::Unit< Tscal >::si_factor = 1

value of one of this unit in SI base units

Definition at line 91 of file Unit.hpp.


The documentation for this struct was generated from the following file: