Rev 162 | Rev 737 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# Define those generics that we need, if they don't existif (!isGeneric("expand")) {setGeneric("expand", function(x, ...) standardGeneric("expand"))}if (!isGeneric("facmul")) {setGeneric("facmul",function(x, factor, y, transpose, left, ...)standardGeneric("facmul"))}if (!isGeneric("lu")) {setGeneric("lu", function(x, ...) standardGeneric("lu"))}if (!isGeneric("norm")) {setGeneric("norm", function(x, type, ...) standardGeneric("norm"))}if (!isGeneric("rcond")) {setGeneric("rcond", function(x, type, ...) standardGeneric("rcond"))}if (!isGeneric("Schur")) {setGeneric("Schur", function(x, vectors, ...) standardGeneric("Schur"))}if (!isGeneric("unpack")) {setGeneric("unpack", function(x, ...) standardGeneric("unpack"))}if (!isGeneric("%p%")) {setGeneric("%p%", function(a, b) standardGeneric("%p%"))}if (!isGeneric("coef<-")) {setGeneric("coef<-", function(object, ..., value)standardGeneric("coef<-"))}## The generics pdFactor, pdMatrix, corFactor and corMatrix will be deprecatedif (!isGeneric("pdFactor")) {setGeneric("pdFactor", function(object) standardGeneric("pdFactor"))}if (!isGeneric("pdMatrix")) {setGeneric("pdMatrix", function(object) standardGeneric("pdMatrix"))}if (!isGeneric("corFactor")) {## extractor for transpose inverse square root factor of corr matrixsetGeneric("corFactor", function(object, ...) standardGeneric("corFactor"))}if (!isGeneric("corMatrix")) {## extractor for correlation matrix or the transpose inverse## square root matrixsetGeneric("corMatrix", function(object, ...) standardGeneric("corMatrix"))}# if (!isGeneric("isInitialized")) {# setGeneric("isInitialized",# function(object) standardGeneric("isInitialized"),# valueClass = "logical")# }if (!isGeneric("matrix<-")) {setGeneric("matrix<-",function(object, value) standardGeneric("matrix<-"))}