alg_deg: Algebraic degree of semidefinite programming

Description Usage Arguments Details Value See also Examples

View source: R/misc.R

Description

alg_deg produces a table for the algebraic degree of semidefinite programmin (see the accompanying vignette for reference to literature).

Usage

1

Arguments

n

size of matrix

Details

Only some precomputed values of n are available. See the literature referenced in the accompanying vignette for general (combinatorial) formulas for the algebraic degree.

Value

The output of alg_deg is a table of the algebraic degrees for the given value of n. To avoid loss of precision, the algebraic degrees are given as strings. See the below example for a simple conversion to numeric, including the problems associated with that step.

See also

curv_meas_exact

Package: symconivol

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
AD_str <- alg_deg(6)

# convert to integer matrix
AD <- matrix( as.numeric(AD_str), dim(AD_str) )
colnames(AD) <- colnames(AD_str)
rownames(AD) <- rownames(AD_str)

# compare both matrices
print(AD_str)
print(AD)

# doing the same for larger n
AD_str <- alg_deg(14)
AD <- matrix( as.numeric(AD_str), dim(AD_str) )

# the conversion introduces rounding errors
i <- which.max(AD_str)
print(AD_str[i])
print(AD[i],digits=20)

damelunx/symconivol documentation built on May 17, 2019, 7:01 p.m.