ScalarToVectorOp#

class ScalarToVectorOp(expression)#

Bases: CallExpression

Provides the vector from a flow and a size.

The format is <flow> ^ <size>.

See the scalar_to_vector_op example.

Parameters:
expression

Call expression to wrap.

Notes

The design differs slightly from the meta-model. Because the input must be a group of flows, the ScalarToVectorOp class does not inherit from the FlowOp class. It exposes directly the list of input flows instead of having a flow that is a ListExpression class.

Overview#

flows

Input flows.

size

Size of the vector.

Import detail#

from ansys.scade.apitools.expr.access import ScalarToVectorOp

Property detail#

property flows: list[Expression]#

Input flows.

property size: Expression#

Size of the vector.