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 July 9, 2023, 6:18 p.m.