Skip to content

Norm

The Norm block returns the length of its input vector.

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.

None.

For u = [3.0, 4.0, 0.0], the output is y = 5.0.