Block: L2Norm



PIC




Inports


u1

Input u1



u2

Input u2






Outports


Out

Euclidean norm of u1 and u2




Description:

Calculation of L2-norm (euclidean norm).

Calculation:

            ∘  -------
Out = ∥u ∥ =   u2+ u2
                1   2

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP8


Name FiP8
ID 5056
Revision 0.1
C filename L2Norm_FiP8.c
H filename L2Norm_FiP8.h

8 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *u1; 
     int8          *u2; 
     int8          Out; 
} L2NORM_FIP8;

Implementation: FiP16


Name FiP16
ID 5057
Revision 0.1
C filename L2Norm_FiP16.c
H filename L2Norm_FiP16.h

16 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *u1; 
     int16         *u2; 
     int16         Out; 
} L2NORM_FIP16;

Implementation: FiP32


Name FiP32
ID 5058
Revision 0.1
C filename L2Norm_FiP32.c
H filename L2Norm_FiP32.h

32 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *u1; 
     int32         *u2; 
     int32         Out; 
} L2NORM_FIP32;

Implementation: Float32


Name Float32
ID 5059
Revision 0.1
C filename L2Norm_Float32.c
H filename L2Norm_Float32.h

32 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *u1; 
     float32       *u2; 
     float32       Out; 
} L2NORM_FLOAT32;

Implementation: Float64


Name Float64
ID 5060
Revision 0.1
C filename L2Norm_Float64.c
H filename L2Norm_Float64.h

64 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *u1; 
     float32       *u2; 
     float64       Out; 
} L2NORM_FLOAT64;