Learn R Programming

jack (version 5.2.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" or "qspray" (default), and this is the class of the polynomial returned by these functions.

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 must pass a rational `alpha` as a string if
  # you want an exact polynomial:
  ( pol <- julia$JackPol(m = 2, lambda = c(3, 1), alpha = "3/2") )
  class(pol)
  JuliaConnectoR::stopJulia()
}

Run the code above in your browser using DataLab