1#ifndef __MATH_TENSOR_KERNEL_H__
2#define __MATH_TENSOR_KERNEL_H__
36template<
typename T, const
int N >
52 const int e = elements[
pt];
58 for(
int l = 0; l < nu; l++){
69 const int k =
jk /
nv;
73 for(
int l = 0; l < nu; l++){
84 const int k =
jk /
nv;
88 for(
int l = 0; l < nu; l++){
97template<
typename T, const
int N >
116 for(
int l = 0; l < nu; l++){
117 tmp +=
A[
i+l*
nv]*
u[l+nu*
j+
e*nu*nu*nu];
127 const int k =
jk /
nv;
128 const int j =
jk -
k *
nv;
131 for(
int l = 0; l < nu; l++){
142 const int k =
jk /
nv;
143 const int j =
jk -
k *
nv;
146 for(
int l = 0; l < nu; l++){
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
__global__ void tnsr3d_el_kernel(T *__restrict__ v, const int nv, const T *__restrict__ u, const int nu, const T *__restrict__ A, const T *__restrict__ Bt, const T *__restrict__ Ct, const int *elements, const int n_points)
__global__ void tnsr3d_kernel(T *__restrict__ v, const int nv, const T *__restrict__ u, const int nu, const T *__restrict__ A, const T *__restrict__ Bt, const T *__restrict__ Ct)