R/DenseMatrix.R

Defines functions as.matrix.DenseMatrix

# Simple wrapper around the stock R matrix class to keep a few extra booking
# details.

setClassUnion("OptionalCall", c("call", "NULL"))
setClass("DenseMatrix",
  slots = c(call = "OptionalCall"),
  contains = "matrix")

#' @export
as.matrix.DenseMatrix <- function(x, ...) { x@.Data }
markmfredrickson/optmatch documentation built on Nov. 24, 2023, 3:38 p.m.