R/sign.r

Defines functions sign_float32

#' sign
#' 
#' Sign.
#' 
#' @param x
#' A float vector/matrix.
#' 
#' @return
#' A float vector/matrix.
#' 
#' @useDynLib float R_sign_spm
#' @name sign
#' @rdname sign
NULL



sign_float32 = function(x)
{
  .Call(R_sign_spm, DATA(x))
}



#' @rdname sign
#' @export
setMethod("sign", signature(x="float32"), sign_float32)

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.