MiniTensor Version of the Day
Loading...
Searching...
No Matches
MiniTensor_Scalar.h File Reference
#include <type_traits>
#include "MiniTensor_config.h"
#include "MiniTensor_Traits.h"
#include "Sacado.hpp"
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  minitensor
 

Functions

template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::abs (T const &a)
 
template<typename T >
KOKKOS_INLINE_FUNCTION void minitensor::swap (T &a, T &b)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::max (T const &a, T const &b)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::min (T const &a, T const &b)
 
template<typename T >
KOKKOS_INLINE_FUNCTION int minitensor::sgn (T const &s)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::copysign (T const &a, T const &b)
 
template<typename T >
KOKKOS_INLINE_FUNCTION Sacado::ScalarType< T >::type minitensor::not_a_number ()
 
template<typename T >
KOKKOS_INLINE_FUNCTION Sacado::ScalarType< T >::type minitensor::machine_epsilon ()
 
template<typename T >
KOKKOS_INLINE_FUNCTION Index minitensor::num_digits ()
 
template<>
KOKKOS_INLINE_FUNCTION Index minitensor::num_digits< Index > ()
 
template<>
KOKKOS_INLINE_FUNCTION Index minitensor::num_digits< LongIndex > ()
 
template<typename T >
KOKKOS_INLINE_FUNCTION Sacado::ScalarType< T >::type minitensor::tau ()
 
template<typename T >
Sacado::ScalarType< T >::type minitensor::random ()
 
template<typename T >
Sacado::ScalarType< T >::type minitensor::random_uniform ()
 
template<typename T >
Sacado::ScalarType< T >::type minitensor::random_normal ()
 
template<typename T >
KOKKOS_INLINE_FUNCTION void minitensor::fill_AD (typename enable_if< is_same< T, typename ScalarType< T >::type >::value, T >::type &x, typename ScalarType< T >::type const c)
 
template<typename T >
KOKKOS_INLINE_FUNCTION void minitensor::fill_AD (typename enable_if<!is_same< T, typename ScalarType< T >::type >::value, T >::type &x, typename ScalarType< T >::type const c)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::integer_power (T const &X, Index const exponent)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::integer_root (T const &x, Index const root)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::kronecker_delta (Index const i, Index const j)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::kronecker_delta (Index const i, Index const j, Index const k)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::kronecker_delta (Index const i, Index const j, Index const k, Index const l)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::levi_civita (Index const i, Index const j)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::levi_civita (Index const i, Index const j, Index const k)
 
template<typename T >
KOKKOS_INLINE_FUNCTIONminitensor::levi_civita (Index const i, Index const j, Index const k, Index const l)
 
template<>
KOKKOS_INLINE_FUNCTION Index minitensor::num_digits< Index > ()
 
template<>
KOKKOS_INLINE_FUNCTION Index minitensor::num_digits< LongIndex > ()