asc.language.tile.binary_ops.add

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

Computes the element-wise addition of input and other.

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

  • other – the right operand (tile or scalar)

Returns:

the result of addition

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.__add__(...) instead of add(x, ...).