Outer and Cross Products
outer builds a table of products and cross gives a perpendicular 3D vector.
Example
print(np.outer([1, 2], [10, 20, 30]))
print(np.cross([1, 0, 0], [0, 1, 0]))Result
[[10 20 30] [20 40 60]] [0 0 1]
Exercise
Product table.
np.([1, 2], [3, 4])
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.