Skip to main content

//clika-runtime/io.clika.runtime/Ops/modInPlace

modInPlace

[common]
fun modInPlace(self: Tensor, other: Tensor, mode: ModMode = ModMode.PYTHON): Tensor

modInPlace(self: Tensor, other: Tensor, mode: ModMode = ModMode.PYTHON): the mod_ operator. In-place mod: writes the remainders through x. Writes through self and returns it, so calls chain.

[common]
fun modInPlace(self: Tensor, other: Double, mode: ModMode = ModMode.PYTHON): Tensor

modInPlace(self: Tensor, other: Double, mode: ModMode = ModMode.PYTHON): the number form of mod_, other as a scalar.