Question: 5 . 1 [ 2 pt ] Write a function called operations that takes as inputs a real number c and two vectors v and
pt Write a function called operations that takes as inputs a real number and two vectors and represented as lists and returns a dictionary that has eight keyvalue pairs:
shape: the shape of as a tuple
scale: scaled by as a numpy array
addition: plus as a numpy array
subtraction: minus as a numpy array
dot: the dot product of and as a float
length: the norm of as a float
asonelongvector: and stacked horizontally as a numpy array
asrows: and stacked vertically like books lying in a pile a table as a numpy array
: def operations c :
# YOUR CODE HERE
raise NotImplementedError
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
