Function Pennylane::getNumpyArrayAlignment

Function Documentation

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

Get memory alignment of a given numpy array.

Parameters

numpyArray – Pybind11’s numpy array type.

Returns

CPUMemoryModel Memory model describing alignment