Question: Given a matrix A (as an np.array), return a vector v as an np.array with shape (3,) in a way that depends on the injective,
Given a matrix A (as an np.array), return a vector v as an np.array with shape (3,) in a way that depends on the injective, surjective, and bijective properties of A.
If A is bijective, return a vector v such that Av =
. If A is not bijective because it is not injective, return a vector v such that Av =A
. If A is not bijective because it is not surjective, return a vector v where the first two coordinates of v are 1 and v=Ax for some vector x.
Note that for this problem A will always either be surjective or injective.
(a) A= np.array([[1,2,3],[2,1,1]]) # your code here v = None
(b) A= np.array([[1,2],[3,4],[10,6]]) # your code here v = None
(c) A= np.array([[1,2,3],[3,4,5],[4,10,6]]) # your code here v = None
2 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
