Function Utils::clearMatrix
Defined in File utils.h
Function Documentation
-
arma::sp_mat Utils::clearMatrix(const arma::sp_mat &A, double tol = 1e-6, double percent = 1 - 1e-6)
Given an arma::sp_mat
A
, returns the same matrix where the entries within a relative and absolute tolerancetol
percent
are set to zeroA
The armadillo sparse matrixtol
The absolute tolerancepercent
The relative tolerance.- Returns
The new refactored matrix