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 tolerancetol
percent
are set to zerob
The armadillo vectortol
The absolute tolerancepercent
The relative tolerance.- Returns
The new refactored matrix