R/distributions.R

Defines functions .native_integer_vector .native_numeric_vector .native_numeric_matrix

# Native interface helpers ----------------------------------------------------

.native_numeric_matrix <- function(x) {

  if (!is.matrix(x)) {
    x <- as.matrix(x)
  }
  if (!is.double(x)) {
    storage.mode(x) <- "double"
  }
  return(x)
}

.native_numeric_vector <- function(x) {

  if (!is.double(x)) {
    x <- as.double(x)
  }
  return(x)
}

.native_integer_vector <- function(x) {

  if (!is.integer(x)) {
    x <- as.integer(x)
  }
  return(x)
}

Try the RoBMA package in your browser

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

RoBMA documentation built on May 7, 2026, 5:08 p.m.