Tensor
A tensor is a multidimensional array used to store and organize data. It generalizes the concepts of scalars (0D), vectors (1D), and matrices (2D) to higher dimensions.
For example, a tensor representing a greyscale image would have two dimensions—width and height—to store pixel values. A color image adds a third dimension for color channels (red, green, blue). A video tensor adds a fourth dimension for time, representing a sequence of image frames.
Tensors are the foundation of machine learning frameworks such as TensorFlow and PyTorch. They enable fast processing on GPUs and TPUs.