https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Namespaces | Functions
KokkosUtils.h File Reference

Go to the source code of this file.

Namespaces

namespace  Moose
 MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to address this in their environment if C++17 compatibility isn't found.
 
namespace  Moose::Kokkos
 
namespace  Moose::Kokkos::Utils
 

Functions

template<typename T >
KOKKOS_INLINE_FUNCTION T Moose::Kokkos::Utils::sign (T x)
 Returns the sign of a value.
 
template<typename T >
KOKKOS_INLINE_FUNCTION const T * Moose::Kokkos::Utils::find (const T &target, const T *const begin, const T *const end)
 Find a value in an array.
 
KOKKOS_INLINE_FUNCTION unsigned int Moose::Kokkos::Utils::packedLowerIndex (const unsigned int i, const unsigned int j)
 Get the index of entry (i, j), j <= i, of a lower-triangular matrix packed row by row.
 
KOKKOS_INLINE_FUNCTION void Moose::Kokkos::Utils::choleskyFactor (Real *const L, const unsigned int n)
 Perform an in-place Cholesky decomposition of a symmetric positive definite matrix.
 
template<typename Vector >
KOKKOS_INLINE_FUNCTION void Moose::Kokkos::Utils::choleskySubstitute (const Real *const L, Vector x, Vector b, const unsigned int n)
 Solve a linear system with a Cholesky factor from choleskyFactor() The right-hand-side vector is modified after this call.