pyxc.core.processor.converter

Module Contents

Functions

iterable_to_numpy(→ numpy.ndarray)

Return np.ndarray from the given array_like.

pyxc.core.processor.converter.iterable_to_numpy(array_like: numpy.typing.ArrayLike) numpy.ndarray[source]

Return np.ndarray from the given array_like.

Convert provided array_like to np.ndarray object if it is not a np.ndarray.

Parameters:
array_likearray_like

Iterable to be converted to a np.ndarray.

Returns:
np.ndarray