float (version 0.2-4)

arithmetic: arithmetic

Description

Binary arithmetic numeric/float matrices.

Usage

# S4 method for float32,float32
+(e1, e2)

# S4 method for float32,float32 *(e1, e2)

# S4 method for float32,float32 -(e1, e2)

# S4 method for float32,float32 /(e1, e2)

# S4 method for float32,float32 ^(e1, e2)

# S4 method for float32,BaseLinAlg +(e1, e2)

# S4 method for float32,BaseLinAlg *(e1, e2)

# S4 method for float32,BaseLinAlg -(e1, e2)

# S4 method for float32,BaseLinAlg /(e1, e2)

# S4 method for float32,BaseLinAlg ^(e1, e2)

# S4 method for BaseLinAlg,float32 +(e1, e2)

# S4 method for BaseLinAlg,float32 *(e1, e2)

# S4 method for BaseLinAlg,float32 -(e1, e2)

# S4 method for BaseLinAlg,float32 /(e1, e2)

# S4 method for BaseLinAlg,float32 ^(e1, e2)

# S4 method for float32,float32 <(e1, e2)

# S4 method for float32,float32 <=(e1, e2)

# S4 method for float32,float32 ==(e1, e2)

# S4 method for float32,float32 >(e1, e2)

# S4 method for float32,float32 >=(e1, e2)

# S4 method for float32,BaseLinAlg <(e1, e2)

# S4 method for float32,BaseLinAlg <=(e1, e2)

# S4 method for float32,BaseLinAlg ==(e1, e2)

# S4 method for float32,BaseLinAlg >(e1, e2)

# S4 method for float32,BaseLinAlg >=(e1, e2)

# S4 method for BaseLinAlg,float32 <(e1, e2)

# S4 method for BaseLinAlg,float32 <=(e1, e2)

# S4 method for BaseLinAlg,float32 ==(e1, e2)

# S4 method for BaseLinAlg,float32 >(e1, e2)

# S4 method for BaseLinAlg,float32 >=(e1, e2)

Arguments

e1, e2

Numeric/float vectors/matrices.

Value

A matrix of the same type as the highest precision input.

Examples

Run this code
# NOT RUN {
library(float)

s1 = flrunif(5, 5)
s2 = flrunif(5, 5)
x = matrix(1:25, 5)

s1 + s2 # float

typeof(x) # integer
x + s2 # float

storage.mode(x) = "double"
x + s2 # double

# }

Run the code above in your browser using DataCamp Workspace