Function Utils::clearVector
Defined in File utils.h
Function Documentation
-
arma::vec Utils::clearVector(const arma::vec &b, double tol = 1e-6, double percent = 1 - 1e-6)
Given an arma::vec
A, returns the same vector where the entries within a relative and absolute tolerancetolpercentare set to zerobThe armadillo vectortolThe absolute tolerancepercentThe relative tolerance.- Returns
The new refactored matrix