DataForm#

class swordfish._swordfishcpp.DataForm(desc, val, type)#

Enumeration defining Swordfish data forms.

Defines various data forms, such as SCALAR, VECTOR, TABLE, etc. Inherits from EnumInt and provides structural information for Constant objects. The data form of a Constant object can be retrieved using Constant.form.

Parameters:
  • desc (str)

  • val (int)

  • type (int)