R/00-classes.r

setClassUnion("Int", c("integer", "matrix"))

#' Class float32
#' 
#' An S4 container for 32-bit float vector/matrix objects.
#' 
#' @slot Data
#' A vector or matrix of integers.
#' 
#' @name float32-class
#' @docType class
#' 
#' @export
setClass("float32", 
  representation(
    Data="Int"
  )
)

setClassUnion("Mat", c("matrix", "float32"))
setClassUnion("BaseLinAlg", c("matrix", "vector"))

Try the float package in your browser

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

float documentation built on Feb. 16, 2023, 6:43 p.m.