Matrix product

Report a typo

You are given six integers from the input stored in the integers list. For example:

1
4
3
8
5
6

Use all of them to create two arrays. The first four integers must be used for creating a two-dimensional array — the first two elements are for the first row, the second two elements are for the second one:

[[1 4]
 [3 8]]

The last two elements are for creating a vector: [5 6].

Once the arrays to work with are ready, compute their matrix product and print it.

[29 63]
Write a program in Python 3
import numpy as np


integers = [int(input()) for num in range(6)]

# write your code here
___

Create a free account to access the full topic