A vector has both magnitude and direction, in contrast to a scalar which has only magnitude.
Coordinates: (2D) or (3D). Magnitude .
Operations:
- Addition / subtraction: componentwise.
- Scalar multiplication: scale magnitude.
- Dot product: — measures alignment, gives a scalar.
- Cross product (3D only): — perpendicular to both, magnitude .
Vectors describe physics (force, velocity), graphics (positions, normals), ML (feature vectors, gradients, embeddings), and geometry. Generalising to higher dimensions and abstract spaces (Hilbert spaces) is the foundation of much of modern mathematics.