pg.scalars.UnaryOp# Accessible via pg.scalars.UnaryOp. class UnaryOp(x)[source]# Bases: pg.evolution.Scalar Unary scalar operators. Methods: call(step) Implementation. operate(x) Implementation of the operation on a computed value. call(step)[source]# Implementation. Subclass should override this method. Return type: Any abstract operate(x)[source]# Implementation of the operation on a computed value. Return type: Union[int, float]