Nonnegativity and positivity of quadratic functionals in discrete calculus of variations: survey