Norm
The Norm block returns the length of its input vector.
Behavior
Section titled “Behavior”y = norm(u), the square root of the sum of the squared elements.
| Port | Direction | Type |
|---|---|---|
| 0 | Input | A float array, [f64; 3] by default |
| 0 | Output | The array’s element type, f64 by default |
The block follows the type wired into it, so an [f32; 3] input gives an f32.
Parameters
Section titled “Parameters”None.
Example
Section titled “Example”For u = [3.0, 4.0, 0.0], the output is y = 5.0.