R/matrix-class.R

Defines functions getGradients.matrix

Documented in getGradients.matrix

#' @rdname getGradients
#' @method getGradients matrix
#' @export
getGradients.matrix <- function(x, method = "BelkinOReilly2009",
                                intermediate = FALSE, ...){

  # Check arguments
  checkArgs_df_matrix(x = x)

  # Apply method
  output <- getGradients.default(x = x, method = method,
                                 intermediate = intermediate, ...)

  dimnames(output) <- dimnames(x)

  output
}

Try the grec package in your browser

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

grec documentation built on May 29, 2024, 2:47 a.m.