KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
phys::dimensions< T, N > Class Template Reference

#include <phys.h>

Inheritance diagram for phys::dimensions< T, N >:
Inheritance graph
Collaboration diagram for phys::dimensions< T, N >:
Collaboration graph

Public Types

using type = T
 

Public Member Functions

constexpr dimensions ()
 
constexpr dimensions (const std::array< T, N > &a)
 
constexpr bool operator== (const dimensions &rdim) const
 
constexpr bool operator!= (const dimensions &rdim) const
 
constexpr bool operator< (const dimensions &rdim) const
 
constexpr bool operator> (const dimensions &rdim) const
 
constexpr dimensions operator/ (const dimensions rdim) const
 
constexpr dimensions operator* (const dimensions rdim) const
 
constexpr dimensions power (const T index) const
 
std::string to_string () const
 

Public Attributes

std::array< T, N > _data
 

Detailed Description

template<typename T, std::size_t N>
class phys::dimensions< T, N >

Definition at line 128 of file phys.h.

Member Typedef Documentation

◆ type

template<typename T , std::size_t N>
using phys::dimensions< T, N >::type = T

Definition at line 130 of file phys.h.

Constructor & Destructor Documentation

◆ dimensions() [1/2]

template<typename T , std::size_t N>
constexpr phys::dimensions< T, N >::dimensions ( )
inlineconstexpr

Definition at line 133 of file phys.h.

◆ dimensions() [2/2]

template<typename T , std::size_t N>
constexpr phys::dimensions< T, N >::dimensions ( const std::array< T, N > & a)
inlineconstexpr

Definition at line 135 of file phys.h.

Member Function Documentation

◆ operator!=()

template<typename T , std::size_t N>
constexpr bool phys::dimensions< T, N >::operator!= ( const dimensions< T, N > & rdim) const
inlineconstexpr

Definition at line 140 of file phys.h.

References phys::dimensions< T, N >::_data.

◆ operator*()

template<typename T , std::size_t N>
constexpr dimensions phys::dimensions< T, N >::operator* ( const dimensions< T, N > rdim) const
inlineconstexpr

Definition at line 147 of file phys.h.

References phys::dimensions< T, N >::_data, and phys::array_add().

Here is the call graph for this function:

◆ operator/()

template<typename T , std::size_t N>
constexpr dimensions phys::dimensions< T, N >::operator/ ( const dimensions< T, N > rdim) const
inlineconstexpr

Definition at line 144 of file phys.h.

References phys::dimensions< T, N >::_data, and phys::array_minus().

Here is the call graph for this function:

◆ operator<()

template<typename T , std::size_t N>
constexpr bool phys::dimensions< T, N >::operator< ( const dimensions< T, N > & rdim) const
inlineconstexpr

Definition at line 141 of file phys.h.

References phys::dimensions< T, N >::_data.

◆ operator==()

template<typename T , std::size_t N>
constexpr bool phys::dimensions< T, N >::operator== ( const dimensions< T, N > & rdim) const
inlineconstexpr

Definition at line 139 of file phys.h.

References phys::dimensions< T, N >::_data.

◆ operator>()

template<typename T , std::size_t N>
constexpr bool phys::dimensions< T, N >::operator> ( const dimensions< T, N > & rdim) const
inlineconstexpr

Definition at line 142 of file phys.h.

References phys::dimensions< T, N >::_data.

◆ power()

template<typename T , std::size_t N>
constexpr dimensions phys::dimensions< T, N >::power ( const T index) const
inlineconstexpr

Definition at line 150 of file phys.h.

References phys::dimensions< T, N >::_data, and phys::array_scale().

Referenced by phys::power().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_string()

template<typename T , std::size_t N>
std::string phys::dimensions< T, N >::to_string ( ) const
inline

Definition at line 151 of file phys.h.

References phys::dimensions< T, N >::_data.

Referenced by phys::to_string().

Here is the caller graph for this function:

Member Data Documentation

◆ _data


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