mindspore.ops.lcm
- mindspore.ops.lcm(input, other)[source]
Computes least common multiplier of input tensors element-wise.
Support broadcast, support implicit type conversion and type promotion.
- Parameters
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> mindspore.ops.lcm(mindspore.tensor([7, 8, 9]), mindspore.tensor([14, 6, 12])) Tensor(shape=[3], dtype=Int64, value= [14, 24, 36])