Expand description
Elementwise kernels with name-based broadcasting and NumPy type promotion.
Functionsยง
- abs
|a|, in the input type.abs(i8::MIN)wraps toi8::MIN, like NumPy.- add
a + b. Integer overflow wraps, like NumPy.- arccos
- Inverse cosine, like
numpy.arccos. - arcsin
- Inverse sine, like
numpy.arcsin. - arctan
- Inverse tangent, like
numpy.arctan. - cast
- Cast the values, like
ndarray.astype. Keeps the attributes. - cbrt
- Cube root, like
numpy.cbrt. - ceil
- Round up, like
numpy.ceil. - clip
- Limit values to
[min, max], likenumpy.clip. Keeps the attributes. - cos
- Cosine, like
numpy.cos. - cosh
- Hyperbolic cosine, like
numpy.cosh. - deg2rad
- Degrees to radians, like
numpy.deg2rad. - div
- True division
a / b, likenumpy.true_divide: integers divide asFloat64. - eq
a == b.- exp
e^a, likenumpy.exp.- expm1
e^a - 1, likenumpy.expm1.- fill_
null - Replace nulls with
value, a length-1 array. Keeps the attributes. - floor
- Round down, like
numpy.floor. - floor_
divide - Floor division
a // b, likenumpy.floor_divide. Integer division by zero gives null. - ge
a >= b.- gt
a > b.- is_
not_ null_ mask truewhere the value is not null.- is_
null_ mask truewhere the value is null.- isfinite
truewhere the value is finite, likenumpy.isfinite.- isinf
truewhere the value is infinite, likenumpy.isinf.- isnan
truewhere the value is NaN, likenumpy.isnan. Nulls stay null.- le
a <= b.- log
- Natural logarithm, like
numpy.log. - log2
- Base-2 logarithm, like
numpy.log2. - log1p
ln(1 + a), likenumpy.log1p.- log10
- Base-10 logarithm, like
numpy.log10. - logical_
and - Logical AND with Kleene null logic (
false AND nullisfalse). - logical_
not - Logical NOT.
- logical_
or - Logical OR with Kleene null logic (
true OR nullistrue). - logical_
xor - Logical XOR. A null input gives a null.
- lt
a < b.- map_
float - Apply a floating point function. Integers compute as
Float64, like NumPy. - mod_
- Remainder with the sign of
b, likenumpy.mod(Python%). Integer division by zero gives null. - mul
a * b. Integer overflow wraps, like NumPy.- nan_
to_ null - Replace NaN with null, so that NaN counts as missing in all kernels.
- ne
a != b.- neg
-a. Integer overflow wraps, like NumPy.- pow
a ** bin floating point, likenumpy.float_power.- rad2deg
- Radians to degrees, like
numpy.rad2deg. - rem
- Remainder with the sign of
a, likenumpy.fmod. Integer division by zero is an error. - result_
type - The NumPy result type of two numeric types, like
numpy.result_type. - round
- Round half to even, like
numpy.roundwith zero decimals. - sin
- Sine, like
numpy.sin. - sinh
- Hyperbolic sine, like
numpy.sinh. - sqrt
- Square root, like
numpy.sqrt. - sub
a - b. Integer overflow wraps, like NumPy.- tan
- Tangent, like
numpy.tan. - tanh
- Hyperbolic tangent, like
numpy.tanh. - trunc
- Round toward zero, like
numpy.trunc. - where_
cond ? x : y, likenumpy.where. A null condition picksy. Keeps the attributes ofx.