23 template <
typename Float2,
typename Float>
38 template <
typename Float2>
55 cudaDeviceSynchronize();
70 template <
typename Float>
87 double mod = det.x*det.x + det.y*det.y;
89 double angle =
atan2(det.y, det.x);
__host__ __device__ void polarSu3(Matrix< complex< Float >, 3 > &in, Float tol)
Project the input matrix on the SU(3) group. First unitarize the matrix and then project onto the spe...
int printf(const char *,...) __attribute__((__format__(__printf__
__host__ __device__ ValueType sin(ValueType x)
__host__ __device__ ValueType atan2(ValueType x, ValueType y)
__host__ __device__ ValueType pow(ValueType x, ExponentType e)
__host__ __device__ int checkUnitaryPrint(Matrix< Float2, 3 > &inv, Matrix< Float2, 3 > in)
Check the unitarity of the input matrix to a given tolerance (1e-14) and print out deviation for each...
cpuColorSpinorField * out
__host__ __device__ int checkUnitary(Matrix< Float2, 3 > &inv, Matrix< Float2, 3 > in, const Float tol)
Check the unitarity of the input matrix to a given tolerance.
__device__ __host__ void computeMatrixInverse(const Matrix< T, 3 > &u, Matrix< T, 3 > *uinv)
__host__ __device__ ValueType cos(ValueType x)
static int mod(int a, int b)
__device__ __host__ T getDeterminant(const Mat< T, 3 > &a)
__host__ __device__ ValueType conj(ValueType x)