Parameters —
Return — point Product of vectors a and b.
Code 1:
# Python program illustrating
# numpy.vdot () method
import
numpy as geek
# 1D array
vector_a
=
2
+
3j
vector_b
=
4
+
5j
product =
geek.vdot (vector_a, vector_b)
print
(
"Dot Product :"
, product)
Output:
Dot Product: (232j)
How does Code1 work?
vector_a = 2 + 3j
vector_b = 4 + 5j
According to the method, take the conjugation of vector_a, i.e. 2 — 3j
now product point = 2 (4 — 5j) + 3j (4 — 5j)
= 8 — 10j + 12j + 15
= 23 — 2j
Code 2:
Output:
Dot Product: 55 Dot Product: 55
Links:
https:// docs .scipy.org / doc / numpydev / reference / generated / numpy.vdot.html # numpy.vdot
,
This article is courtesy of Mohit Gupta_OMG
The ability to identify patterns is an essential component of sensory intelli gent machines. Pattern recognition is therefore an indispensible component of the socalled “Intelligent Control System...
10/07/2020
As the title promises, this book will introduce you to one of the world’s most popular programming languages: Python. It’s aimed at beginning programmers as well as more experienced programmers wh...
23/09/2020
The field of Artificial Intelligence (AI), which can definitely be considered to be the parent field of deep learning, has a rich history going back to 1950. While we will not cover this history in mu...
23/09/2020
Introduction to Machine Learning with Python: A Guide for Data Scientists 1st Edition. Machine learning has become an integral part of many commercial applications and research projects, but this f...
05/09/2021
