Fully-parallel relaxation algebraic operations for optical computers