Morse index and determinant of block Jacobi matrices via optimal control. - Stefano Baranzini; Ivan Beschastnyi (CoRR, 2022)