R/clean.warm.start.R

Defines functions clean.warm.start

Documented in clean.warm.start

clean.warm.start=function(a){
  if(is.null(a))return(NULL)
  d=a$d
  if(is.null(d))return(NULL)
  if(any(d>0)){
    if(length(d)==1){
      a$u=matrix(a$u,ncol=1)
      a$v=matrix(a$v,ncol=1)
    }
    a
  }
  else NULL
}

            

Try the softImpute package in your browser

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

softImpute documentation built on May 9, 2021, 9:07 a.m.