A Generalized Index Theorem for Monotone Matrix