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

# norm class

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

## Summary

Computes the element-wise Lp norm of the field elementary data. Default Lp=L2

available inputs: `field` (Field, FieldsContainer), `scalar_int` (Int32) (optional)

available outputs: `field` (Field)

## Example

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

op = norm(field=my_field,scalar_int=my_scalar_int)
```

## Class Information

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

## Inputs

### field

field or fields container with only one field is expected

**Type:** *LinkableInput*

### scalar\_int

Lp normalisation type, p = 1, 2, ...n - Default Lp=L2

**Type:** *LinkableInput*

## Outputs

### field

Scalar field containing the Lp norm values for each element

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
norm(field, scalar_int, config)
```

**Parameters:**

* `field` (*object*)
* `scalar_int` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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