python_utils.zip_to_array#

Back to Module page

Summary#

O(10^3)x faster np.array([row for row in np.broadcast(\*args)]) usable when args are all at most 1d.

Signature#

def zip_to_array(*args)
Input variables#

Name

Type

Default

Description

\*args

Output variables#

Return annotation

Docstring type

Description

None

Docstring#

O(10^3)x faster np.array([row for row in np.broadcast(*args)])
usable when args are all at most 1d.