pyFM icon indicating copy to clipboard operation
pyFM copied to clipboard

Use memoryviews for sample_weight_data

Open yetanotherion opened this issue 7 years ago • 0 comments

Use https://cython.readthedocs.io/en/latest/src/userguide/numpy_tutorial.html#efficient-indexing-with-memoryviews instead of casting the arrays.data attribute into a DOUBLE*.

The former strategy generated segfaults in some servers.

yetanotherion avatar Feb 12 '19 17:02 yetanotherion