useDynLib(spray, .registration=TRUE)
exportPattern("^[[:alpha:]]+")

importFrom(Rcpp, evalCpp)
importFrom(magic,adiag)
importFrom(partitions,compositions)
import(methods)


importFrom("utils", "head")
importFrom("utils", "capture.output")

importFrom(disordR,disord)
importFrom(disordR,elements)
importFrom(disordR,hash)
importFrom(disordR,hashcal)
importFrom(disordR,is.disord)
importFrom(disordR,consistent)
importFrom(disordR,allsame)

importFrom("stringr","str_squish")

export(spray_add)
export(pmax)
export(pmin)
export(zapsmall)
export(summary)
export(is.zero)


S3method("[", spray)
S3method("[<-", spray)
S3method(dim,spray)
S3method(as.array,spray)
S3method(as.function,spray)
S3method(print,spray)
S3method(Ops,spray)
S3method(asum,spray)
S3method(deriv,spray)
S3method("coeffs",spray)
S3method("coeffs<-",spray)
S3method(pmax,spray)
S3method(pmin,spray)
S3method(pmax,default)
S3method(pmin,default)
S3method(constant,spray)
S3method("constant<-",spray)
S3method("as.id",spray)
S3method("summary",spray)
S3method("print",summary.spray)
S3method("length",spray)
S3method("as.character",spray)
