Package ffx.potential.openmm
Class OpenMMDoubleArray
java.lang.Object
ffx.potential.openmm.OpenMMDoubleArray
OpenMM DoubleArray wrapper.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OpenMMDoubleArray
public OpenMMDoubleArray(int size) Constructor.- Parameters:
size
- The size of the array.
-
-
Method Details
-
append
public void append(double value) Append a double value to the array.- Parameters:
value
- The value to append.
-
set
public void set(int index, double value) Set a value in the array.- Parameters:
index
- The index of the value.value
- The value.
-
destroy
public void destroy()Destroy the array. -
resize
public void resize(int size) Resize the array.- Parameters:
size
- The new size.
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the pointer to the array.- Returns:
- The pointer.
-