qsolve runs 4ti2's qsolve program to compute the configuration matrix A corresponding to graphical statistical models given by a simplicial complex and levels on the nodes.

qsolve(mat, rel, sign, dir = tempdir(), quiet = TRUE, shell = FALSE, ...)

Arguments

mat

The A matrix (see the 4ti2 documentation or examples)

rel

A vector of "<" or ">" relations

sign

The signs of the individual

dir

Directory to place the files in, without an ending /

quiet

If FALSE, messages the 4ti2 output

shell

Messages the shell code used to do the computation

...

Additional arguments to pass to the function

Value

The configuration matrix of the model provided

Examples

if (has_4ti2()) { # x + y > 0 # x + y < 0 mat <- rbind( c( 1, 1), c( 1, 1) ) rel <- c(">", "<") sign <- c(0, 0) qsolve(mat, rel, sign, p = "arb") qsolve(mat, rel, sign, p = "arb", quiet = FALSE) qsolve(mat, rel, sign, p = "arb", shell = TRUE) }
#> ------------------------------------------------- #> 4ti2 version 1.6.7 #> Copyright 1998, 2002, 2006, 2015 4ti2 team. #> 4ti2 comes with ABSOLUTELY NO WARRANTY. #> This is free software, and you are welcome #> to redistribute it under certain conditions. #> For details, see the file COPYING. #> ------------------------------------------------- #> Using arbitrary precision integers. #> Cone is not pointed. #> Ray Support Algorithm. #> The codimension is 2 #> 4ti2 Total Time: 0.00 secs.
#> /Applications/latte/bin/qsolve -parb /var/folders/r3/126_d6t55f5d32tplbg5mk1d0c48s9/T//RtmpugrA1n/2020_03_17_23_45_41_JOAFS8aHcX/system > qsolve_out 2> qsolve_err
#> $qhom #> [,1] [,2] #> #> $qfree #> [,1] [,2] #> [1,] 1 -1 #>