Skip to main content

Module validation

Module validation 

Source
Expand description

Validation functions for common parameter checks

Functionsยง

check_dimensions
Check that dimensions match
check_finite_array
Check that an array contains only finite values
check_finite_f32
Check that a value is finite (for floating point)
check_finite_f64
Check that a value is finite (for floating point)
check_non_empty
Check that a slice is not empty
check_non_empty_str
Check that a string is not empty
check_positive
Check that a value is positive
check_range
Check that a value is within a range