R/typeInfo.R

#XXX See code in compile.R - getBuiltInRoutines
FunctionTypeInfo =
  list (sqrt = list(return = "numeric", isElementwise = TRUE, inputs = c("numeric")),
        exp = list(return = "numeric", isElementwise = TRUE, inputs = c("numeric")),
        log = list(return = "numeric", isElementwise = TRUE, inputs = c("numeric")),        
        "^" = list(return = "numeric", isElementwise = TRUE, inputs = c("numeric")),                
        "/" = list(return = "numeric", isElementwise = TRUE, inputs = "numeric")
     # the following depend onthe types of the inputs
#       "*" = list(return = "numeric", isElementwise = TRUE, inputs = "numeric"),
#       "+" = list(return = "numeric", isElementwise = TRUE, inputs = "numeric"),
#       "-" = list(return = "numeric", isElementwise = TRUE, inputs = "numeric")                        
        )

ConstantInfo =
     list(pi = base::pi, e = exp(1))
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.