> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# linear_combination class

**Namespace:** [Ans.DataProcessing.operators.math](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/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

```python theme={null}
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

```python theme={null}
linear_combination()
```

#### Constructor

```python theme={null}
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

```python theme={null}
linear_combination(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
