23 return (left + right) / 2;
30 if (
diff(left, right) == 0 ||
diff(log(left), log(right)) == 0) {
34 return diff(left, right) /
diff(log(left), log(right));
40 auto div =
ln(left, right);
__device__ __host__ real div(real a, real b)
Definition: tecno_utils.hpp:49
#define __host__
Definition: types.hpp:46
double real
Definition: types.hpp:65
__device__ __host__ real diff(real left, real right)
Definition: tecno_utils.hpp:26
__device__ __host__ real bar(real left, real right)
Definition: tecno_utils.hpp:22
#define __device__
Definition: types.hpp:45
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
__device__ __host__ real divLn(real left, real right, real F)
Definition: tecno_utils.hpp:39
__device__ __host__ real ln(real left, real right)
Definition: tecno_utils.hpp:29