VectorRamp

DEPRECATED. Creates a ramp vector.

Syntax

IppStatus ippsVectorRamp_8u(Ipp8u* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_8s(Ipp8s* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_16u(Ipp16u* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_16s(Ipp16s* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_32u(Ipp32u* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_32s(Ipp32s* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_32f(Ipp32f* pDst, int len, float offset, float slope);

IppStatus ippsVectorRamp_64f(Ipp64f* pDst, int len, float offset, float slope);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

pDst

Pointer to the destination vector.

len

Number of elements in the vector.

offset

Offset value.

slope

Slope coefficient.

Description

The function ippsVectorRamp is deprecated. This function is obsolete and will be removed in a future release. Use Slope function instead of this one. Use the following link for details: http://software.intel.com/sites/products/ipp-deprecated-features-feedback/.

This function creates a ramp vector and stores the result in pDst. The destination vector elements are computed according to the following formula:

pDst[n] = offset + slope*n, 0 n < len.

Note that this function is similar to the function ippsVectorSlope, but the linear transform coefficients offset and slope have floating-point values for all flavors of the function ippsVectorRamp. In most cases the use of the function ippsVectorSlope is more preferrable.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pDst pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to 0.

Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione