R/miqr.solve.R

Defines functions miqr.solve

Documented in miqr.solve

miqr.solve <- function(a, b) {
  x <- tryCatch({
    qr.solve(a, b);
  }, error = function(e) {
    e;
  }, finally = "");

  if (!is.matrix(x)) {
    x <- ginv(a) %*% b;
  }

  x;
} # miqr.solve()

Try the ACNE package in your browser

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

ACNE documentation built on May 29, 2024, 12:33 p.m.