We generalize the celebrated results of Bernhard Riemann and Gaston Darboux: we give necessary and sufficient conditions for a bilinear form to be flat. More precisely, we give explicit necessary and sufficient conditions for a tensor field of type (0,2) which is not necessary symmetric or skew-symmetric, and is possibly degenerate, to have constant entries in a local coordinate system. Comment: 27 pages