ORB5X 1.0.0
Performance-portable global electromagnetic gyrokinetic PIC code
Loading...
Searching...
No Matches
orb5x::Util Class Reference

#include "util.hpp"

Public Types

using HostVectorView = Kokkos::View<Real*, Kokkos::HostSpace>

Static Public Member Functions

static void A3deriv (const Kokkos::View< Real * > &y_in, const Kokkos::View< Real * > &x_in, Kokkos::View< Real * > &dydx_out, const Kokkos::View< Real * > &x_out)
static void A3interp (const Kokkos::View< Real * > &y_in, const Kokkos::View< Real * > &x_in, Kokkos::View< Real * > &y_out, const Kokkos::View< Real * > &x_out)
static void append_stat (const std::string &filename, const std::string &data)
static int choose_int (const Kokkos::View< int * > &arr, int val)
static int choose_int (const std::vector< int > &arr, int val)
static void creatd_stat (const std::string &filename)
static int execute_command_line_wrapper (const std::string &command)
static void gaussj (Kokkos::View< Real ** > &a, Kokkos::View< Real ** > &b, int n, int m)
static Real interp1 (Real x, const Kokkos::View< Real * > &xp, const Kokkos::View< Real * > &yp)
static Real log2real (bool lin)
static void mrqcof (const Kokkos::View< Real * > &x, const Kokkos::View< Real * > &y, const Kokkos::View< Real * > &sig, Kokkos::View< Real * > &a, const Kokkos::View< int * > &ia, Kokkos::View< Real ** > &alpha, Kokkos::View< Real * > &beta, Real &chisq, std::function< void(Real, const HostVectorView &, Real &, HostVectorView &)> funcs)
template<typename ViewType>
static void putarr_attime (const ViewType &arr, Real time, const std::string &name)
static Real zbrent (std::function< Real(Real)> func, Real x1, Real x2, Real tol)

Member Typedef Documentation

◆ HostVectorView

using orb5x::Util::HostVectorView = Kokkos::View<Real*, Kokkos::HostSpace>

Member Function Documentation

◆ A3deriv()

void orb5x::Util::A3deriv ( const Kokkos::View< Real * > & y_in,
const Kokkos::View< Real * > & x_in,
Kokkos::View< Real * > & dydx_out,
const Kokkos::View< Real * > & x_out )
static

◆ A3interp()

void orb5x::Util::A3interp ( const Kokkos::View< Real * > & y_in,
const Kokkos::View< Real * > & x_in,
Kokkos::View< Real * > & y_out,
const Kokkos::View< Real * > & x_out )
static

◆ append_stat()

void orb5x::Util::append_stat ( const std::string & filename,
const std::string & data )
static

◆ choose_int() [1/2]

int orb5x::Util::choose_int ( const Kokkos::View< int * > & arr,
int val )
static

◆ choose_int() [2/2]

int orb5x::Util::choose_int ( const std::vector< int > & arr,
int val )
static

◆ creatd_stat()

void orb5x::Util::creatd_stat ( const std::string & filename)
static

◆ execute_command_line_wrapper()

int orb5x::Util::execute_command_line_wrapper ( const std::string & command)
static

◆ gaussj()

void orb5x::Util::gaussj ( Kokkos::View< Real ** > & a,
Kokkos::View< Real ** > & b,
int n,
int m )
static

◆ interp1()

Real orb5x::Util::interp1 ( Real x,
const Kokkos::View< Real * > & xp,
const Kokkos::View< Real * > & yp )
static

◆ log2real()

Real orb5x::Util::log2real ( bool lin)
static

◆ mrqcof()

void orb5x::Util::mrqcof ( const Kokkos::View< Real * > & x,
const Kokkos::View< Real * > & y,
const Kokkos::View< Real * > & sig,
Kokkos::View< Real * > & a,
const Kokkos::View< int * > & ia,
Kokkos::View< Real ** > & alpha,
Kokkos::View< Real * > & beta,
Real & chisq,
std::function< void(Real, const HostVectorView &, Real &, HostVectorView &)> funcs )
static

◆ putarr_attime()

template<typename ViewType>
void orb5x::Util::putarr_attime ( const ViewType & arr,
Real time,
const std::string & name )
static

◆ zbrent()

Real orb5x::Util::zbrent ( std::function< Real(Real)> func,
Real x1,
Real x2,
Real tol )
static

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