importFrom(bigmemory, big.matrix, as.big.matrix, attach.big.matrix, describe, deepcopy)
importFrom(parallel, makeCluster, clusterExport, clusterEvalQ, clusterApply, clusterCall, clusterMap, stopCluster)
importFrom(grDevices, colorRamp, rgb, dev.off, jpeg)
importFrom(graphics, abline, axis, grid, layout, legend, par, plot, points, rect, text, title, lines, mtext, image, boxplot)
importFrom(stats, runif, rnorm, var, quantile)

importFrom("stats", "dbeta", "fitted", "pnorm", "rnorm", "uniroot",
export(ssvd, seigen, pQF,  SKAT.matrixfree, sparse.matrixfree, famSKAT)

importFrom("stats", "dgamma", "dpois", "fitted", "make.link",
"printCoefmat", "pt", "rbinom", "rgamma", "rpois", "terms",

importFrom("stats", "pt", "qt", "quantile", "rnorm")

# return 0 if successful, -i if ith argument has illegal value
# return 0 if successful, <0 if -i-th argument is invalid, > 0 if leading minor
# return 0 if successful, <0 i-th argument has illegal value, >0 QR
# for now, VL and VR have to be matrices but they could be NULL
#          < 0 if INFO = -i had an illegal value
#          > 0 if DBDSDC did not converge
# #' @useDynLib bigalgebra, .registration = TRUE

importFrom("stats", "as.dist", "dist", "median", "quantile")

importFrom("stats", "as.dist", "dist", "median", "quantile","mahalanobis","var")

export(big.matrix, as.big.matrix, is.big.matrix, add.cols, rm.cols, shared.big.matrix, is.shared, attach.big.matrix, rw.mutex, attach.rw.mutex, describe, kmeans.big.matrix, biglm.big.matrix, bigglm.big.matrix, hash.mat, deepcopy, shared.deepcopy, read.big.matrix, write.big.matrix, dimnames, "dimnames<-", colsd, colvar, mwhich, colmin, colmax, colrange, colsum, colprod, colmean)
exportMethods("[", "[<-", mean, min, max, range, prod, sum, nrow, ncol, summary, print, head, tail, typeof)

export(big.matrix, as.big.matrix, is.big.matrix, add.cols, rm.cols, shared.big.matrix, is.shared, attach.big.matrix, rw.mutex, attach.rw.mutex, describe, kmeans.big.matrix, biglm.big.matrix, bigglm.big.matrix, hash.mat, deepcopy, shared.deepcopy, read.big.matrix, write.big.matrix, colsd, colvar, mwhich, colmin, colmax, colrange, colsum, colprod, colmean)
exportMethods("[", "[<-", dimnames, "dimnames<-", mean, min, max, range, prod, sum, nrow, ncol, summary, print, head, tail, typeof)