feynml.interface.formcalc.vector.Vector

class feynml.interface.formcalc.vector.Vector(i: int, sequenceform: feynml.interface.formcalc.sequenceform.SequenceForm | None = None)[source]

Bases: Particle

__init__(i: int, sequenceform: SequenceForm | None = None) None

Methods

__init__(i[, sequenceform])

from_str(vector)

Example

get_pdgid()

n()

re()

Attributes

sequenceform

i

classmethod from_str(vector: str)[source]

Example

>>> str(Vector.from_str('V[1, {SequenceForm["Col", 1]}]'))
'V[1, {SequenceForm["Col", 1]}]'
>>> str(Vector.from_str('V[1]'))
'V[1]'