is.allzero: Tests whether all elements are approximately zero
Description
A single-line function that tests whether all elements are zero
(approximately).
Usage
is.allzero(x)
Value
A logical.
Arguments
x
An object whose elements are to be tested.
Author
Chris Brien
Details
The mean of the absolute values of the elements of x is tested to determine if it is less than daeTolerance, which is initially set to .Machine$double.eps ^ 0.5 (about 1.5E-08). The function set.daeTolerance can be used to change daeTolerance.