Numpy

Numpy

Numpy is the core library for scientific computing in Python. It provides a high-performance multidimensional array object and tools for working with these arrays. A Numpy array is a grid of values, all of the same type, and is indexed by a tuple of nonnegative integers. The number of dimensions is the rank of the array; the shape of an array is a tuple of integers giving the size of the array along each dimension.
Numpy takes less computation time for multiplication of two matrices as it uses the technique of Vectorization which is very useful for complex model calculation.

Show how much time for loop version take for calculation

 

Close Menu