Skip to content

← elementwise_math package

OperateConstant

Add, subtract, multiply or divide each element in the data by a given constant.

Skips marker streams. Version 1.0.0

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: AnyNumeric (can be None)
  • data direction: INOUT

constant

Value by which to perform the selected operation on each element of the data.

  • verbose name: Constant
  • default value: 0.0
  • port type: FloatPort
  • value type: float (can be None)

operator

The operator to be performed on the data using the constant.

  • verbose name: Operator
  • default value: add
  • port type: EnumPort
  • value type: str (can be None)

constant_first

When true, the order of the operation is the constant first, element second, i.e .: constant-element (instead of element-constant). This only affects subtract and divide.

  • verbose name: Constant First
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)