Data Warehousing
Teradata Tutorial: Learn Basics for Beginners
What is Teradata? Teradata is massively parallel open processing system for developing large-scale data...
Numpy.dot product is a powerful library for matrix computation. For instance, you can compute the dot product with np.dot. Numpy.dot product is the dot product of a and b. numpy.dot() in Python handles the 2D arrays and perform matrix multiplications.
Syntax
numpy.dot(x, y, out=None)
Parameters
Here,
x,y: Input arrays. x and y both should be 1-D or 2-D for the np.dot() function to work
out: This is the output argument for 1-D array scalar to be returned. Otherwise ndarray should be returned.
Returns
The function numpy.dot() in Python returns a Dot product of two arrays x and y. The dot() function returns a scalar if both x and y are 1-D; otherwise, it returns an array. If 'out' is given then it is returned.
Raises
Dot product in Python raises a ValueError exception if the last dimension of x does not have the same size as the second last dimension of y.
Example:
## Linear algebra ### Dot product: product of two arrays f = np.array([1,2]) g = np.array([4,5]) ### 1*4+2*5 np.dot(f, g)
14
What is Teradata? Teradata is massively parallel open processing system for developing large-scale data...
What is Multidimensional schema? Multidimensional Schema is especially designed to model data...
{loadposition top-ads-automation-testing-tools} What is Business Intelligence Tool? BUSINESS...
Log Management Software are tools that deal with a large volume of computer-generated messages. It is...
Here are data modelling interview questions for fresher as well as experienced candidates. 1) What...
What is ETL? ETL is a process that extracts the data from different source systems, then...