div¶
Description¶
@div(x,y)
x / y
Type Rules¶
High-level (Same as mul)
Real , Real -> MaxType
complex, Real -> complex
Real , complex -> complex
_ , _ -> domain error
Note
1) bool
is promoted to integers before any operation for real
2) div(0,0)
is an error (In APL, it returns 1)
Table with details (See type alias)
Shape Rules¶
Dyadic elementwise shape rules
Examples¶
@div((-1,2,3):i32, 0.5:f32)
(-2,4,6):f32