Linear Algebra Meets Geometry Flashcards
What is the definition of a point?
A location relative to the origin.
What is the definition of a Vector?
Points from one point to another; comprised of direction * norm.
What is the format of a vector?
The format of a Vector is the displacement needed to get to a point assuming the vector begins at the origin.
What is the Vector pointing FROM point (1, 2) TO point (-2, -1)?
(-3, -3)
How is vector addition performed?
Assumes same size, performed element wise.
Does order matter in Vector addition?
No, it is commutative.
What is the result of a Vector [v1, v2, v3, …, vk] multiplied by scalar s?
[sv1, sv2, …, s*vk]
What is the norm of a Vector [v1, v2, v3, …, vk]?
sqrt(v12 + v22 +… + vk**2)
What is the norm of a Vector?
It is the length or magnitude
What is a unit vector
A vector with a norm equal to 1
What is the shorthand for a vector u that is a unit vector?
û
Given a vector u, how do you transform it into a unit vector?
û = u / (||u||) or vector divided by its norm
Given vectors u and v, what is the dot product of both assuming they are the same size?
It is the sum of elementwise multiplication between the two vectors.
Given vectors u and v, what is the numpy method to find the dot product?
u.dot(v)
Given vectors u and v, what is the numpy operator to find the dot product?
u @ v