> ## 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.

# assemble_scalars_to_matrices class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

Take nine scalar fields and assemble them as a 3x3 matrix field. If the 'symmetrical' input is set to true, only six scalar fields are required (xx, yy, zz, xy, xz and yz).

available inputs: `xx` (Field) (optional), `yy` (Field) (optional), `zz` (Field) (optional), `xy` (Field) (optional), `yz` (Field) (optional), `xz` (Field) (optional), `yx` (Field) (optional), `zy` (Field) (optional), `zx` (Field) (optional), `symmetrical` (bool) (optional)

available outputs: `field` (Field)

## Example

```python theme={null}
op = assemble_scalars_to_matrices()

op = assemble_scalars_to_matrices(xx=my_xx,yy=my_yy,zz=my_zz,xy=my_xy,yz=my_yz,xz=my_xz,yx=my_yx,zy=my_zy,zx=my_zx,symmetrical=my_symmetrical)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.utility` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### xx

**Type:** *LinkableInput*

### yy

**Type:** *LinkableInput*

### zz

**Type:** *LinkableInput*

### xy

**Type:** *LinkableInput*

### yz

**Type:** *LinkableInput*

### xz

**Type:** *LinkableInput*

### yx

**Type:** *LinkableInput*

### zy

**Type:** *LinkableInput*

### zx

**Type:** *LinkableInput*

### symmetrical

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
assemble_scalars_to_matrices(xx, yy, zz, xy, yz, xz, yx, zy, zx, symmetrical, config)
```

**Parameters:**

* `xx` (*object*)
* `yy` (*object*)
* `zz` (*object*)
* `xy` (*object*)
* `yz` (*object*)
* `xz` (*object*)
* `yx` (*object*)
* `zy` (*object*)
* `zx` (*object*)
* `symmetrical` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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