tfarraycomm¶
Overview
-
class
tfarraycomm.
tf_array_comm
(nparray, hoomd_context=<sphinx.ext.autodoc.importer._MockObject object>)¶ Set up HOOMD context and interface with C++ memory.
Parameters: - nparray – numpy array to share with the C++ process
- hoomd_context – HOOMD execution configuration
(defaults to
hoomd.context.exec_conf
)
-
getArray
()¶ Convert C++ array into a numpy array.
Returns: the converted numpy array
-
receive
()¶ Receives the array from the C++ class instance.
-
send
()¶ Sends the array to the C++ class instance.