Package edu.duke.cs.osprey.gpu
Class Structs
java.lang.Object
edu.duke.cs.osprey.gpu.Structs
A crude way to represent and access C structs and arrays
using MemoryAddresses and MemoryHandles from the Foreign-Memory Access API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static enum
Determines the level of floating-point precision for calculations.static class
static class
static class
Structs.StructField<T extends Structs.Struct>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Structs.Bool
bool()
static Structs.Char8
char8()
static Structs.Char8.Array
static Structs.Float32
float32()
static Structs.Float32.Array
static Structs.Float64
float64()
static Structs.Float64.Array
static Structs.Int32
int32()
static Structs.Int32.Array
static Structs.Int64
int64()
static Structs.Int64.Array
static Structs.Pad
pad
(long bytes) static Structs.Real
real
(Structs.Precision precision) static Structs.Real.Array
realarray
(Structs.Precision precision) static <T extends Structs.Struct>
Structs.StructField<T>struct
(T struct) static <T> long
sum
(T[] things, ToLongFunction<? super T> converter)
-
Constructor Details
-
Structs
public Structs()
-
-
Method Details
-
sum
-
pad
-
int32
-
int32array
-
int64
-
int64array
-
float32
-
float32array
-
float64
-
float64array
-
bool
-
struct
-
real
-
realarray
-
char8
-
char8array
-