KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
phys::inner Namespace Reference

Classes

struct  matrix
 

Functions

minimal constexpr functions
template<typename T >
CONSTEXPR_DECORexp_int (int n)
 
template<typename T >
CONSTEXPR_DECOR long double exp (T num)
 
template<typename T >
CONSTEXPR_DECOR long double log (T num)
 
template<typename T >
CONSTEXPR_DECOR long double pow (T a, T b)
 
minimal linalg utils for solving unit systems at a compile-time cost
template<typename T , std::size_t M, std::size_t N>
CONSTTYPE std::tuple< matrix< T, M, N >, std::size_t, T > gauss_jordan_impl (matrix< T, M, N > m, T tolerance)
 
template<typename T , std::size_t M>
CONSTTYPE matrix< T, M, M > inverse (matrix< T, M, M > m)
 
template<typename T , std::size_t M, std::size_t N, std::size_t P>
CONSTTYPE matrix< T, M, P > matmul (matrix< T, M, N > a, matrix< T, N, P > b)
 
template<typename T , std::size_t M, std::size_t N>
std::ostream & operator<< (std::ostream &os, matrix< T, M, N > m)
 

Function Documentation

◆ exp()

template<typename T >
CONSTEXPR_DECOR long double phys::inner::exp ( T num)

Definition at line 589 of file phys.h.

Referenced by pow().

Here is the caller graph for this function:

◆ exp_int()

template<typename T >
CONSTEXPR_DECOR T phys::inner::exp_int ( int n)

Definition at line 572 of file phys.h.

◆ gauss_jordan_impl()

template<typename T , std::size_t M, std::size_t N>
CONSTTYPE std::tuple< matrix< T, M, N >, std::size_t, T > phys::inner::gauss_jordan_impl ( matrix< T, M, N > m,
T tolerance )

Definition at line 640 of file phys.h.

Referenced by inverse().

Here is the caller graph for this function:

◆ inverse()

template<typename T , std::size_t M>
CONSTTYPE matrix< T, M, M > phys::inner::inverse ( matrix< T, M, M > m)

Definition at line 677 of file phys.h.

References phys::math::eps16, and gauss_jordan_impl().

Here is the call graph for this function:

◆ log()

template<typename T >
CONSTEXPR_DECOR long double phys::inner::log ( T num)

Definition at line 602 of file phys.h.

Referenced by pow().

Here is the caller graph for this function:

◆ matmul()

template<typename T , std::size_t M, std::size_t N, std::size_t P>
CONSTTYPE matrix< T, M, P > phys::inner::matmul ( matrix< T, M, N > a,
matrix< T, N, P > b )

Definition at line 697 of file phys.h.

Referenced by phys::unitsys::eval().

Here is the caller graph for this function:

◆ operator<<()

template<typename T , std::size_t M, std::size_t N>
std::ostream & phys::inner::operator<< ( std::ostream & os,
matrix< T, M, N > m )
inline

Definition at line 708 of file phys.h.

◆ pow()

template<typename T >
CONSTEXPR_DECOR long double phys::inner::pow ( T a,
T b )

Definition at line 616 of file phys.h.

References exp(), and log().

Referenced by phys::unitsys::eval().

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