normalize

Utilities for normalization of user input.

Functions

normalized_axes_tuple(axes, ndim)

Return a tuple of axes converted to positive integers.

normalized_index_expression(indices, shape)

Enable indexing with almost Numpy-like capabilities.

normalized_nodes_on_bdry(nodes_on_bdry, length)

Return a list of 2-tuples of bool from the input parameter.

normalized_scalar_param_list(param, length)

Return a list of given length from a scalar parameter.

safe_int_conv(number)

Safely convert a single number to integer.