tests.utils.math

Math utilities for testing

Functions

tests.utils.math.rel_diff_arr(x, y)

Relative differences of two arrays

Parameters:
Return type:

ndarray

tests.utils.math.rel_diff_scalar(x, y)

Relative difference of two scalars

Parameters:
  • x (float)

  • y (float)

Return type:

float