Module sprs::approx

source ·
Expand description

Traits for comparing vectors and matrices using the approx traits

Comparisons of sparse matrices with different storages might be slow. It is advised to compare using the same storage order for efficiency

These traits requires the approx feature to be activated

Traits

  • Equality that is defined using the absolute difference of two numbers.
  • Equality comparisons between two numbers using both the absolute difference and relative based comparisons.
  • Equality comparisons between two numbers using both the absolute difference and ULPs (Units in Last Place) based comparisons.