sum | R Documentation |
Sums any combination of float/numeric vector(s)/matri[x|ces].
## S4 method for signature 'float32'
sum(x, ..., na.rm = FALSE)
x |
A float matrix. |
... |
Additional elements (numeric/float vectors/matrices) to sum. |
na.rm |
should NA's be removed? |
If there are any elements in ...
, all elements in the list will first
be summed in their native precision, then converted to double precision so
they can be combined with base::sum()
. The final result will be cast
to single precision if ...
contains only integer and/or float objects.
Otherwise, the return will be double precision.
A single value.
library(float)
x = flrunif(10, 3)
sum(x)
sum(x, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.