import numpy as np ll = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] m3x3 = np.array(ll) m3x3 type(m3x3) m3x3.transpose() m3x1 = np.array([10,20,0]) m3x3 * m3x1 np.sin(m3x3) m3x3 m3x3[1:,:2]
import numpy as np list_1 = [ [10, 20, 30], [40, 50, 60], [70, 80, 90] ] m_1 = np.array(list_1) m_2 = m_1 / 0.333 m_2 m_sum = m_1 + m_2 print(np.round(m_sum))