membership_test: Membership Testing

View source: R/membership_test.R

membership_testR Documentation

Membership Testing

Description

Test if specified points lie on components of a numerical irreducible decomposition.

Usage

membership_test(out, points, dir = tempdir(), ...)

Arguments

out

the output of a positive-dimension run from bertini

points

a matrix of points to be tested

dir

directory to place the files in, without an ending /

...

additional configuration arguments to be changed

Value

a 'glue' object that contains the decision of each point

Examples


if (has_bertini()) {

# see ?bertini

# run initial numerical irreducible decomposition for equation xy = 0
input <- bertini_input("x*y")
input <- modify_config(input, tracktype = 1)

out <- bertini(input, output = "pos_dim")

# test if the points (0,0), (1,0), (0,1), (1,1) are in the solution set
pts_to_test <- matrix(c(0,0,1,0,0,1,1,1), nrow = 4, ncol = 2, byrow = TRUE)
membership_test(out, pts_to_test)
}

dkahle/bertini documentation built on July 16, 2022, 9:26 a.m.