Package civitas.celestis.gpu
Class Kernels
java.lang.Object
civitas.celestis.gpu.Kernels
Contains predefined kernels.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KernelSourceA program which takes twodoubles and outputs the sumstatic final KernelSourceKernel used for debugging.static final KernelSourceA program which takes twodoubles and outputs the quotientstatic final KernelSourceA program which takes twodoubles and outputs the productstatic final KernelSourceA program which takes onedouble[]and outputs the normalized array.static final KernelSourceA program which takes onedouble[]and outputs the normalized array.static final KernelSourceA program which takes onedouble[]and outputs the normalized array.static final KernelSourceA program which takes onedoubleand outputs the square rootstatic final KernelSourceA program which takes twodoubles and outputs the difference -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ADD_DOUBLES
A program which takes twodoubles and outputs the sum. (a + b)- Parameter count: 3
- Parameter 0:
double[]of length1(input A) - Parameter 1:
double[]of length1(input B) - Parameter 2:
double[]of length1(output) - Work size:
1
-
SUBTRACT_DOUBLES
A program which takes twodoubles and outputs the difference. (a - b)- Parameter count: 3
- Parameter 0:
double[]of length1(input A) - Parameter 1:
double[]of length1(input B) - Parameter 2:
double[]of length1(output) - Work size:
1
-
MULTIPLY_DOUBLES
A program which takes twodoubles and outputs the product. (a * b)- Parameter count: 3
- Parameter 0:
double[]of length1(input A) - Parameter 1:
double[]of length1(input B) - Parameter 2:
double[]of length1(output) - Work size:
1
-
DIVIDE_DOUBLES
A program which takes twodoubles and outputs the quotient. (a / b)- Parameter count: 3
- Parameter 0:
double[]of length1(input A) - Parameter 1:
double[]of length1(input B) - Parameter 2:
double[]of length1(output) - Work size:
1
-
SQRT_DOUBLE
A program which takes onedoubleand outputs the square root. (sqrt(a))- Parameter count: 2
- Parameter 0:
double[]of length1(input A) - Parameter 1:
double[]of length1(output) - Work size:
1
-
NORMALIZE_VECTOR_2
A program which takes onedouble[]and outputs the normalized array.- Parameter count: 2
- Parameter 0:
double[]of length2(input A) - Parameter 1:
double[]of length2(output) - Work size:
2
-
NORMALIZE_VECTOR_3
A program which takes onedouble[]and outputs the normalized array.- Parameter count: 2
- Parameter 0:
double[]of length3(input A) - Parameter 1:
double[]of length3(output) - Work size:
3
-
NORMALIZE_VECTOR_4
A program which takes onedouble[]and outputs the normalized array.- Parameter count: 2
- Parameter 0:
double[]of length4(input A) - Parameter 1:
double[]of length4(output) - Work size:
4
-
DEBUG_1
Kernel used for debugging.
-
-
Constructor Details
-
Kernels
public Kernels()
-