asc.language.tile.binary_ops.sub

asc.language.tile.binary_ops.sub(input: Tile | PlainValue | int | float, other: Tile | PlainValue | int | float) Tile

Computes the element-wise subtraction of input and other.

Parameters:
  • input – the left operand (tile or scalar)

  • other – the right operand (tile or scalar)

Returns:

the result of subtraction

Return type:

Tile

Note

At least one of input operands must be Tile.

This function can also be called as a member function on Tile, as x.__sub__(...) instead of sub(x, ...).