Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

Norm

Computes the C, L1, L2, or L2Sqr norm of a vector.

Syntax

IppStatus ippsNorm_Inf_32f(const Ipp32f*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_Inf_64f(const Ipp64f*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_Inf_16s32f(const Ipp16s*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_Inf_32fc32f(const Ipp32fc*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_Inf_64fc64f(const Ipp64fc*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L1_32f(const Ipp32f*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_L1_64f(const Ipp64f*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L1_16s32f(const Ipp16s*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_L1_32fc64f(const Ipp32fc*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L1_64fc64f(const Ipp64fc*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L2_32f(const Ipp32f*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_L2_64f(const Ipp64f*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L2_16s32f(const Ipp16s*
pSrc
, int
len
, Ipp32f*
pNorm
);
IppStatus ippsNorm_L2_32fc64f(const Ipp32fc*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L2_64fc64f(const Ipp64fc*
pSrc
, int
len
, Ipp64f*
pNorm
);
IppStatus ippsNorm_L2Sqr_16s64s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp64s*
pNorm
, int
scaleFactor
);
IppStatus ippsNorm_L2Sqr_16s64s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp64s*
pNorm
, int
scaleFactor
);
IppStatus ippsNorm_Inf_16s32s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp32s*
pNorm
, int
scaleFactor
);
IppStatus ippsNorm_L1_16s32s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp32s*
pNorm
, int
scaleFactor
);
IppStatus ippsNorm_L1_16s64s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp64s*
pNorm
, int
scaleFactor
);
IppStatus ippsNorm_L2_16s32s_Sfs(const Ipp16s*
pSrc
, int
len
, Ipp32s*
pNorm
, int
scaleFactor
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
pSrc
Pointer to the source vector.
pNorm
Pointer to the output result.
len
Number of elements in the vector.
scaleFactor
Scale factor, refer to Integer Scaling.
Description
This function computes the
C
,
L1
,
L2
, or
L2Sqr
norm of the source vector
pSrc
and stores the result in
pNorm
.
ippsNorm_Inf
.
The function
ippsNorm_Inf
computes the
C
norm defined by the formula:
ippsNorm_L1
.
The function
ippsNorm_L1
computes the
L1
norm defined by the formula:
ippsNorm_L2
.
The function
ippsNorm_L2
computes the
L2
norm defined by the formula:
ippsNorm_L2Sqr
.
The function
ippsNorm_L2Sqr
computes the
L2Sqr
norm defined as square of the
L2
norm.
Functions with
Sfs
suffixes perform scaling of the result value in accordance with the
scaleFactor
value.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when the
pSrc
or
pNorm
pointer is
NULL
.
ippStsSizeErr
Indicates an error when
len
is less than or equal to 0.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804