Function Pennylane::getNumpyArrayAlignment

Function Documentation

auto Pennylane::getNumpyArrayAlignment(const pybind11::array &numpyArray) -> CPUMemoryModel

Get memory alignment of a given numpy array.

Parameters

numpyArray – Pybind11’s numpy array type.

Returns

Memory model describing alignment