issmall: Is a form zero to within numerical precision?

Description Usage Arguments Value Author(s) Examples

Description

Given a k-form, return TRUE if it is “small”

Usage

1
issmall(M, tol=1e-8)

Arguments

M

Object of class kform or ktensor

tol

Small tolerance, defaulting to 1e-8

Value

Returns a logical

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
6
7
o <- kform_general(4,2,runif(6))
M <- matrix(rnorm(36),6,6)

discrepancy <- o - transform(transform(o,M),solve(M))

issmall(discrepancy)  # should be TRUE
is.zero(discrepancy)  # might be FALSE

wedge documentation built on Sept. 4, 2019, 9:02 a.m.