Function Utils::clearVector

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 tolerance tol percent are set to zero b The armadillo vector tol The absolute tolerance percent The relative tolerance.


The new refactored matrix