Answer:
import numpy as np
import time
def matrixMul(m1,m2):
if m1.shape[1] == m2.shape[0]:
t1 = time.time()
r1 = np.zeros((m1.shape[0],m2.shape[1]))
for i in range(m1.shape[0]):
for j in range(m2.shape[1]):
r1[i,j] = (m1[i]*m2.transpose()[j]).sum()
t2 = time.time()
print("Native implementation: ",r1)
print("Time: ",t2-t1)
t1 = time.time()
r2 = m1.dot(m2)
t2 = time.time()
print("\nEfficient implementation: ",r2)
print("Time: ",t2-t1)
else:
print("Wrong dimensions!")
Explanation:
We define a function (matrixMul) that receive two arrays representing the two matrices to be multiplied, then we verify is the dimensions are appropriated for matrix multiplication if so we proceed with the native implementation consisting of two for-loops and prints the result of the operation and the execution time, then we proceed with the efficient implementation using .dot method then we return the result with the operation time. As you can see from the image the execution time is appreciable just for large matrices, in such a case the execution time of the efficient implementation can be 1000 times faster than the native implementation.
Aerospace engineers design, analyze, model, simulate, and test aircraft, spacecraft, satellites, missiles, and rockets. Aerospace technology also extends to many other applications of objects moving within gases or liquids. Examples are golf balls, high-speed trains, hydrofoil ships, or tall buildings in the wind. As an aerospace engineer, you might work on the Orion space mission, which plans on putting astronauts on mars by 2020. Or, you might be involved in developing a new generation of space telescopes, the source of some of our most significant cosmological discoveries. But outer space is just one of many realms to explore as an aerospace engineer. You might develop commercial airliners, military jets, or helicopters for our airways. And getting even more down-to-earth, you could design the latest ground and sea transportation, including high-speed trains, racing cars, or deep-sea vessels that explore life at the bottom of the ocean.
Answer:
development
forming stage - The team transitions into this stage after completion of its first successful project.
storming stage - In this stage, comfort and trust between the members is high.
norming stage - In this stage, the team members come together for the first time.
performing stage- In this stage, the members have a better idea of what the team expects of them.
wth u should clear ur question