Debugging flag.
Create an instance of the operator.
Create an instance of the operator.
Fields that are inputs to the operator.
Field resulting from execution of the operator.
Declare an internal error described by message
.
Declare an internal error described by message
.
User-defined name of the operator.
A user-defined operator, allowing the user to write Cog code that can't be easily parallelized and must be executed on the CPU.
To define an Operator, create an object which extends this class and define a 'compute' method in it. Here's an example:
To invoke this operator, use it like a function:
This class does the necessary reflective magic to connect up the
compute
method, which is written using *FieldReader and *FieldWriter objects, to Fields.