error_value_numpy#

Module containing subroutines to check numpy.ndarray values.

Functions

check_ndarray_all_gt

Check if all elements in a numpy.ndarray are all greater than a provided value.

check_ndarray_all_gteq

Check if all elements in a numpy.ndarray are all greater than or equal to a provided value.

check_ndarray_axis_len

Check if a numpy.ndarray has a specific length along a specific axis.

check_ndarray_axis_len_eq

Check if a numpy.ndarray has a specific length along a specific axis.

check_ndarray_axis_len_gt

Check if a numpy.ndarray has at minimum a specific length along a specific axis.

check_ndarray_axis_len_gteq

Check if a numpy.ndarray has at minimum a specific length along a specific axis.

check_ndarray_axis_len_lt

Check if a numpy.ndarray has at maximum a specific length along a specific axis.

check_ndarray_axis_len_lteq

Check if a numpy.ndarray has at maximum a specific length along a specific axis.

check_ndarray_eq

Check if two numpy.ndarray values are equal to each other.

check_ndarray_has_value

Check if a numpy.ndarray contains a required value.

check_ndarray_has_values

Check if a numpy.ndarray contains all required values.

check_ndarray_in_interval

Check whether all values in a numpy.ndarray are in the interval [vmin, vmax].

check_ndarray_is_binary

Check if all elements in a numpy.ndarray are either 0 or 1.

check_ndarray_is_hypercube

Check if a numpy.ndarray is a hypercube.

check_ndarray_is_square

Check whether a numpy.ndarray is square along its last two axes.

check_ndarray_is_triu

Check whether a numpy.ndarray is an upper triangle matrix.

check_ndarray_len_eq

Check if a numpy.ndarray has a specific length.

check_ndarray_len_gteq

Check if a numpy.ndarray has at least a specific length.

check_ndarray_len_is_multiple_of

Check whether a numpy.ndarray has a length of a specific multiple.

check_ndarray_mean_is_approx

Check if a numpy.ndarray has an approximately equal mean along a specific axis.

check_ndarray_ndim

Check if a numpy.ndarray has a specific number of dimensions.

check_ndarray_ndim_gteq

Check if a numpy.ndarray has at least a specific number of dimensions.

check_ndarray_shape_eq

Check if a numpy.ndarray has a specific shape.

check_ndarray_size

Check if a numpy.ndarray has a specific size.

check_ndarray_std_is_approx

Check if a numpy.ndarray has an approximately equal standard deviation along a specific axis.

check_ndarray_sum

Check if a numpy.ndarray has a specific sum along a specific axis.