R/ownany.r

setGeneric(name="ownany", 
  function(x, ...) 
    standardGeneric("ownany"), 
  package="pbdDMAT"
)



setMethod("ownany", signature(x="ddmatrix"), 
  function(x, ...)
  {
    iown <- base.ownany(dim=x@dim, bldim=x@bldim, ICTXT=x@ICTXT)
    
    return( iown )
  }
)



setMethod("ownany", signature(x="missing"), 
  function(dim, bldim=.pbd_env$BLDIM, ICTXT=.pbd_env$ICTXT, x)
  {
    if (length(bldim)==1)
      bldim <- rep(bldim, 2L)
    
    iown <- base.ownany(dim=dim, bldim=bldim, ICTXT=ICTXT)
    
    return( iown )
  }
)

Try the pbdDMAT package in your browser

Any scripts or data that you put into this service are public.

pbdDMAT documentation built on May 1, 2019, 6:34 p.m.