linear_combination class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.math
Summary
Computes aXY + bZ where a,b (in 0, in 3) are scalar and X,Y,Z (in 1,2,4) are complex numbers.
available inputs: a (double), fields_containerA (FieldsContainer), fields_containerB (FieldsContainer), b (double), fields_containerC (FieldsContainer)
available outputs: fields_container (FieldsContainer)
Example
op = linear_combination()
op = linear_combination(a=my_a,fields_containerA=my_fields_containerA,fields_containerB=my_fields_containerB,b=my_b,fields_containerC=my_fields_containerC)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.math |
| Assembly | Ans_Dpf_Native_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
a
Double
Type: LinkableInput
fields_containerA
Type: LinkableInput
fields_containerB
Type: LinkableInput
b
Double
Type: LinkableInput
fields_containerC
Type: LinkableInput
Outputs
fields_container
Type: LinkableOutput
Constructors
Constructor
linear_combination()
Constructor
linear_combination(a, fields_containerA, fields_containerB, b, fields_containerC, config)
Parameters:
a(object)fields_containerA(object)fields_containerB(object)b(object)fields_containerC(object)config(OperatorConfig)
Constructor
linear_combination(config)
Parameters:
config(OperatorConfig)
Methods
Properties
inputs
Type: InputSpec
# Get or set the property
value = obj.inputs
obj.inputs = new_value
outputs
Type: OutputSpec
# Get or set the property
value = obj.outputs
obj.outputs = new_value
defaultConfig
Type: Config
# Get the property (read-only)
value = obj.defaultConfig