Collatz-Wielandt numbers in general partially ordered spaces