Skip to content

num::verify

Defined in header <operator/properties.hpp>

template <class L, class T>
void verify(const T &A, call_site site = {});

Check law L, and every law it implies, on random vectors.

Exceptions

  • std::invalid_argument: If A is not square.

Notes

Sampling can only reject a violation; it never proves the law holds.