Function to switch tolerance depending on precision

Description

This function was written by Mark Seligman at Rapid Biologics, http://rapidbiologics.com

The function gpuLm.fit calls this function to determine a default tolerance. So gpuLm.defaultTol should not need to be used directly.

Usage

1
gpuLm.defaultTol(useSingle = TRUE)

Arguments

useSingle

logical. If TRUE, a tolerance will be returned appropriate for single precision arithmetic. If FALSE, a tolerance will be returned appropriate for double precision arithmetic.

Value

a floating point number representing a tolerance to be used by gpuLm.fit

See Also

gpuLm.fit gpuLm