Learn R Programming

latte (version 0.2.2)

ppi: Compute the primitive partition identities

Description

ppi runs 4ti2's ppi program to compute the primitive partition identities, that is, the Graver basis of 1:N.

Usage

ppi(N, dir = tempdir(), quiet = TRUE, shell = FALSE, ...)

Value

A matrix containing the basis as its columns (for easy addition to tables)

Arguments

N

A postive integer > 2

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

See Also

graver()

Examples

Run this code

if (has_4ti2()) {

ppi(3)
t(ppi(3)) %*% 1:3
plot_matrix(ppi(3))

graver(t(1:3))
plot_matrix(graver(t(1:3)))

ppi(5, quiet = FALSE, shell = TRUE)

}


Run the code above in your browser using DataLab