In [1]:
import numpy as np
In [2]:
a = np.array([0, 2, 3, 6])
b = np.array([3, 4, 5, 15])
In [3]:
print(np.lcm(a, b))
In [4]:
print(type(np.lcm(a, b)))
In [5]:
print(np.lcm(6, 15))
In [6]:
a_2d = np.array([[0, 2, 3, 6], [0, 2, 3, 6]])
print(a_2d)
In [7]:
print(np.lcm(a_2d, b))
In [8]:
print(np.lcm(a, 15))