outer_allequal | R Documentation |
Test if two double vectors are element-wise (nearly) equal.
outer_allequal(target, current, tolerance = sqrt(.Machine$double.eps), ...)
target |
length- |
current |
length- |
tolerance |
positive double scalar, default |
... |
potential parameters, currently not in use |
Function outer_allequal is different from all.equal.numeric, such that
only compares between double, not complex, values
element-wise comparison is performed
a logical scalar is always returned for each element-wise comparison.
Function outer_allequal returns an n_c\times n_t
logical matrix
indicating whether the length-n_c
vector current
is element-wise near-equal to
the length-n_t
vector target
within the pre-specified tolerance
.
outer
x = c(.3, 1-.7, 0, .Machine$double.eps)
outer_allequal(current = x, target = c(.3, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.