# Method normAxis

#### static member normAxis: int * Tensor<'T> * 'T option -> Tensor<'T>

Calculates the norm along the specified axis.

##### Declaration

`static member normAxis: axis:int * a:Tensor<'T> * ord:'T option -> Tensor<'T>`

##### Parameters

Type | Name | Description |
---|---|---|

int | axis | The axis to operate along. |

Tensor<'T> | a | The tensor containing the source values. |

'T option | ord | The order (power) of the norm. (default: 2) |

##### Returns

Type | Description |
---|---|

Tensor<'T> | A new tensor containing the result of this operation. |

##### Remarks

The norm is calculated along the specified axis.

It is defined by `sqrt (sum_i (x_i**ord))`

.

##### Examples

```
let a = HostTensor.ofList2D [[1.0; 2.0; 3.0; 4.0]
[5.0; 6.0; 7.0; 8.0]]
let b = Tensor.normAxis (1, a) // [5.477; 13.191]
```