1#ifndef IPPL_RANDOM_UTILITY_H
2#define IPPL_RANDOM_UTILITY_H
4#include <Kokkos_MathematicalConstants.hpp>
5#include <Kokkos_MathematicalFunctions.hpp>
6#include <Kokkos_Random.hpp>
27 template <
typename T,
class Distribution>
52 KOKKOS_INLINE_FUNCTION
void solve(
unsigned int d,
T& x,
T& u) {
53 unsigned int iter = 0;
This file defines multi-dimensional arrays to store mesh and particle attributes.
constexpr double e
The value of.
Implementations for FFT constructor/destructor and transforms.
The class that represents a distribution.
KOKKOS_INLINE_FUNCTION T getObjFunc(T x, unsigned int d, T u) const
KOKKOS_INLINE_FUNCTION T getDerObjFunc(T x, unsigned int d) const
Functor for solving equations using the Newton-Raphson method.
KOKKOS_FUNCTION ~NewtonRaphson()=default
KOKKOS_INLINE_FUNCTION NewtonRaphson(const Distribution &dist_)
KOKKOS_INLINE_FUNCTION void solve(unsigned int d, T &x, T &u)
Solve an equation using the Newton-Raphson method.
KOKKOS_FUNCTION NewtonRaphson()=default