dhart.spatialstructures.EdgeSumArray

class dhart.spatialstructures.EdgeSumArray(vector_ptr: c_void_p, data_ptr: c_void_p, size: int)

Contains the scores for every node based on edges

__init__(vector_ptr: c_void_p, data_ptr: c_void_p, size: int)

Create a new numpy like instance

Parameters:
  • vector_ptr – A pointer to the C++ vector holding the information

  • data_ptr – A pointer to the underlying data of the vector. This is what is used for the numpy buffer.

  • size – The shape of the array. I.E. 100 would be a flat 100 element array, (100, 200) would be a 2dimensional array, etc.

Methods

GetPointers()

Return the underlying vector and data pointers.

delete_fp()