taichi.lang.ops
¶
Module Contents¶
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
The negate function. |
|
The sine function. |
|
The cosine function. |
|
The inverses function of sine. |
|
The inverses function of cosine. |
|
The square root function. |
|
The reciprocal of the square root function. |
|
The round function. |
|
The floor function. |
|
The ceil function. |
|
The tangent function. |
|
The hyperbolic tangent function. |
|
The exp function. |
|
The natural logarithm function. |
|
The absolute value function. |
|
The bit not function. |
|
The logical not function. |
|
The random function. |
|
The add function. |
|
The sub function. |
|
The multiply function. |
|
The remainder function. |
|
The power function. |
|
The floor division function. |
|
True division function. |
|
The maxnimum function. |
|
The minimum function. |
|
The inverses of the tangent function. |
|
Raw_div function. |
|
Raw_mod function. Both a and b can be float. |
|
Compare two values (less than) |
|
Compare two values (less than or equal to) |
|
Compare two values (greater than) |
|
Compare two values (greater than or equal to) |
|
Compare two values (equal to) |
|
Compare two values (not equal to) |
|
Computes bitwise-or |
|
Compute bitwise-and |
|
Compute bitwise-xor |
|
Compute bitwise shift left |
|
Compute bitwise shift right |
|
Compute bitwise shift right (in taichi scope) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes¶
- taichi.lang.ops.unary_ops = []¶
- taichi.lang.ops.stack_info()¶
- taichi.lang.ops.is_taichi_expr(a)¶
- taichi.lang.ops.wrap_if_not_expr(a)¶
- taichi.lang.ops.unary(foo)¶
- taichi.lang.ops.binary_ops = []¶
- taichi.lang.ops.binary(foo)¶
- taichi.lang.ops.ternary_ops = []¶
- taichi.lang.ops.ternary(foo)¶
- taichi.lang.ops.writeback_binary_ops = []¶
- taichi.lang.ops.writeback_binary(foo)¶
- taichi.lang.ops.cast(obj, dtype)¶
- taichi.lang.ops.bit_cast(obj, dtype)¶
- taichi.lang.ops.neg(a)¶
The negate function.
- taichi.lang.ops.sin(a)¶
The sine function.
- taichi.lang.ops.cos(a)¶
The cosine function.
- taichi.lang.ops.asin(a)¶
The inverses function of sine.
- taichi.lang.ops.acos(a)¶
The inverses function of cosine.
- taichi.lang.ops.sqrt(a)¶
The square root function.
- taichi.lang.ops.rsqrt(a)¶
The reciprocal of the square root function.
- taichi.lang.ops.round(a)¶
The round function.
- taichi.lang.ops.floor(a)¶
The floor function.
- taichi.lang.ops.ceil(a)¶
The ceil function.
- taichi.lang.ops.tan(a)¶
The tangent function.
- taichi.lang.ops.tanh(a)¶
The hyperbolic tangent function.
- taichi.lang.ops.exp(a)¶
The exp function.
- taichi.lang.ops.log(a)¶
The natural logarithm function.
- taichi.lang.ops.abs(a)¶
The absolute value function.
- taichi.lang.ops.bit_not(a)¶
The bit not function.
- taichi.lang.ops.logical_not(a)¶
The logical not function.
- taichi.lang.ops.random(dtype=float)¶
The random function.
- Parameters
dtype (DataType) – Type of the random variable.
- Returns
A random variable whose type is dtype.
- taichi.lang.ops.add(a, b)¶
The add function.
- taichi.lang.ops.sub(a, b)¶
The sub function.
- taichi.lang.ops.mul(a, b)¶
The multiply function.
- taichi.lang.ops.mod(a, b)¶
The remainder function.
- taichi.lang.ops.pow(a, b)¶
The power function.
- taichi.lang.ops.floordiv(a, b)¶
The floor division function.
- taichi.lang.ops.truediv(a, b)¶
True division function.
- taichi.lang.ops.max(a, b)¶
The maxnimum function.
- taichi.lang.ops.min(a, b)¶
The minimum function.
- taichi.lang.ops.atan2(a, b)¶
The inverses of the tangent function.
- taichi.lang.ops.raw_div(a, b)¶
Raw_div function.
- taichi.lang.ops.raw_mod(a, b)¶
Raw_mod function. Both a and b can be float.
- taichi.lang.ops.cmp_lt(a, b)¶
Compare two values (less than)
- taichi.lang.ops.cmp_le(a, b)¶
Compare two values (less than or equal to)
- taichi.lang.ops.cmp_gt(a, b)¶
Compare two values (greater than)
- taichi.lang.ops.cmp_ge(a, b)¶
Compare two values (greater than or equal to)
- taichi.lang.ops.cmp_eq(a, b)¶
Compare two values (equal to)
- taichi.lang.ops.cmp_ne(a, b)¶
Compare two values (not equal to)
- taichi.lang.ops.bit_or(a, b)¶
Computes bitwise-or
- taichi.lang.ops.bit_and(a, b)¶
Compute bitwise-and
- taichi.lang.ops.bit_xor(a, b)¶
Compute bitwise-xor
- taichi.lang.ops.bit_shl(a, b)¶
Compute bitwise shift left
- taichi.lang.ops.bit_sar(a, b)¶
Compute bitwise shift right
- taichi.lang.ops.bit_shr(a, b)¶
Compute bitwise shift right (in taichi scope)
- taichi.lang.ops.logical_or¶
- taichi.lang.ops.logical_and¶
- taichi.lang.ops.select(cond, a, b)¶
- taichi.lang.ops.atomic_add(a, b)¶
- taichi.lang.ops.atomic_sub(a, b)¶
- taichi.lang.ops.atomic_min(a, b)¶
- taichi.lang.ops.atomic_max(a, b)¶
- taichi.lang.ops.atomic_and(a, b)¶
- taichi.lang.ops.atomic_or(a, b)¶
- taichi.lang.ops.atomic_xor(a, b)¶
- taichi.lang.ops.assign(a, b)¶
- taichi.lang.ops.ti_max(*args)¶
- taichi.lang.ops.ti_min(*args)¶
- taichi.lang.ops.ti_any(a)¶
- taichi.lang.ops.ti_all(a)¶