is_empty_matrix: 'is_empty_matrix': test if a matrix contains all 0s.

Description Usage Arguments Value

View source: R/utils.R

Description

is_empty_matrix takes a matrix and tests if it contains all 0s.

Usage

1
is_empty_matrix(x, tol = .Machine$double.eps)

Arguments

x

A matrix to test.

tol

Tolerance precision to eliminate all abs(x) values below tol. Default is .Machine$double.eps.

Value

A boolean. TRUE if the matrix contains all 0s, FALSE if the matrix does not.


derekbeaton/GSVD documentation built on Jan. 2, 2021, 9:21 p.m.