R/print.dykstra.R

print.dykstra <-
  function(x, n = 5L, ...){
    
    cat("converged: ", x$converged, " (", x$iter, " iterations)", sep = "")
    if(length(x$solution) <= n) {
      cat("\n solution:", round(x$solution, getOption("digits"))) 
    } else {
      cat("\n solution:", "vector of length", length(x$solution))
    }
    cat("\n    value:", round(x$value, getOption("digits")),"\n")
  }

Try the Dykstra package in your browser

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

Dykstra documentation built on May 2, 2019, 8:58 a.m.