vectorization

Utilities for internal functionality connected to vectorization.

Classes

OptionalArgDecorator(*args, **kwargs)

Abstract class to create decorators with optional arguments.

vectorize(*args, **kwargs)

Decorator class for function vectorization.

Functions

is_valid_input_array(x[, ndim])

Test if x is a correctly shaped point array in R^d.

is_valid_input_meshgrid(x, ndim)

Test if x is a meshgrid sequence for points in R^d.

out_shape_from_array(arr)

Get the output shape from an array.

out_shape_from_meshgrid(mesh)

Get the broadcast output shape from a meshgrid.