/** * Removes all elements from the matrix that are > tol. The modification is done in place and no temporary * storage is declared. * * @param A (Input/Output) input matrix. Modified. * @param tol Tolerance for defining zero */ public static void removeZeros(DMatrixSparseCSC A, double tol) { ImplCommonOps_DSCC.removeZeros(A, tol); }
/** * Copies all elements from input into output which are > tol. * @param input (Input) input matrix. Not modified. * @param output (Output) Output matrix. Modified and shaped to match input. * @param tol Tolerance for defining zero */ public static void removeZeros(DMatrixSparseCSC input, DMatrixSparseCSC output, double tol) { ImplCommonOps_DSCC.removeZeros(input, output, tol); }