R/helmert.R

Defines functions helmert

Documented in helmert

## ID: helmert.R, last updated 2021-05-09, F.Osorio

helmert <- function(n = 1)
{ ## function returns the Helmert matrix of order 'n'
  mat <- matrix(0, nrow = n, ncol = n)
  storage.mode(mat) <- "double"
  z <- .Fortran("helmert_mat",
                mat = mat,
                ldmat = as.integer(n),
                n = as.integer(n),
                info = as.integer(0))
  if (z$info)
    stop(paste("helmert_mat gave error code", z$info))
  z <- z$mat
  z
}

Try the fastmatrix package in your browser

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

fastmatrix documentation built on Oct. 12, 2023, 5:14 p.m.