Macaulay2 » Documentation
Packages » SLPexpressions :: support
next | previous | forward | backward | up | index | toc

support -- input gates appearing in an SLP expression

Description

Returns the input gates that occur in a gate expression, excluding constant input gates. This is useful for determining which variables an expression depends on.

i1 : declareVariable \ {x,y,z}

o1 = {x, y, z}

o1 : List
i2 : f = (x-y)^2 + 3*z

o2 = (((x + (-1 * y)) * (x + (-1 * y))) + (3 * z))

o2 : SumGate
i3 : support f

o3 = {x, y, z}

o3 : List

Ways to use support:

  • support(DetGate)
  • support(DivideGate)
  • support(GateMatrix)
  • support(InputGate)
  • support(Matrix) -- see support -- list of variables occurring in a polynomial or matrix
  • support(ProductGate)
  • support(RingElement) -- see support -- list of variables occurring in a polynomial or matrix
  • support(SumGate)
  • support(Ideal) -- list of variables occurring in the generators of an ideal
  • support(List) (missing documentation)

For the programmer

The object support is a method function.


The source of this document is in SLPexpressions/doc.m2:95:0.