Function Utils::containsElement

Function Documentation

bool Utils::containsElement(const arma::vec &b, const double &element, const double tol = 1e-6)

Check if the vector b contains element.

Parameters
  • b – The vector containing the elements to be checked

  • element – The input element

  • tol – A numerical tolerance

Returns

True if the element was found