In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. ... In matrix algebra, a diagonal of a square matrix is a set of entries extending from one corner to the farthest corner.