plus¶
Description¶
@plus(x,y)
x + y
Type Rules¶
High-level
Real ,Real -> MaxType
month ,Int -> month
date ,Int -> date
dt ,Int -> dt
hour ,Int -> hour
second,Int -> second
time ,Int -> time
Int ,month -> month
Int ,date -> date
Int ,dt -> dt
Int ,hour -> hour
Int ,second -> second
Int ,time -> time
_ -> domain error
Note
Type bool
is promoted to i16
before any operation.
Table with details (See type alias)
Shape Rules¶
Dyadic elementwise shape rules
Examples¶
@plus((-1,2,3):i32, 1:i32)
(0,3,4):i32