A tensor is an array of numbers arranged on a grid with a variable number of axes, i.e., it is a matrix defined by three axes .