tolerance-method: Get or Set Tolerance for an Object

Description Usage Arguments Author(s) See Also Examples

Description

This is a generic function for getting or setting 'tolerance' for an object which tests floating point equality.

Usage

1
2
3
tolerance(object, ...)

tolerance(object, ...) <- value

Arguments

object

An object with tolerance.

...

Additional arguments.

value

The value to set the tolerance.

Author(s)

Kylie A. Bemis

See Also

sparse_mat

Examples

1
2
3
4
x <- sparse_mat(diag(10), keys=rnorm(10))
tolerance(x)
tolerance(x) <- c(absolute=0.1)
x[]

matter documentation built on Nov. 8, 2020, 6:15 p.m.