Learn R Programming

jack (version 3.0.0)

Jack_julia: Evaluation with Julia

Description

Evaluate the Jack polynomials with Julia. This is highly faster.

Usage

Jack_julia()

Arguments

Value

A list of functions having the same names as the R functions of this package (Jack, JackPol, Schur, etc). The

XXXPol functions have an argument poly, whose possible value is "mvp" (default) or "gmpoly", and this is the class of the polynomial returned by these functions. See the examples and the README file.

See Also

as.function.exactmvp

Examples

Run this code
library(jack)
if(JuliaConnectoR::juliaSetupOk()){
  julia <- Jack_julia()
  # numerical evaluation ####
  julia$Jack(x = c(2, 2/3), lambda = c(3, 1), alpha = 3/2)
  # to pass rational numbers, use strings:
  julia$Jack(x = c("2", "2/3"), lambda = c(3, 1), alpha = "3/2")
  # symbolic polynomials ####
  # for `JackPol`, you can pass a rational `alpha` as a string:
  ( pol <- julia$JackPol(m = 2, lambda = c(3, 1), alpha = "3/2") )
  class(pol)
  # you _must_ give `alpha` as a string if you choose `poly = "gmpoly"`
  julia$JackPol(m = 2, lambda = c(3, 1), alpha = "3/2", poly = "gmpoly")
  JuliaConnectoR::stopJulia()
}

Run the code above in your browser using DataLab