Yeppp!
 All Classes Functions Variables Pages
List of all members
Math Class Reference

Vector mathematical functions. More...

Static Public Member Functions

Natural logarithm
static native void Log_V64f_V64f (double[] xArray, int xOffset, double[] yArray, int yOffset, int length)
 Computes natural logarithm on double precision (64-bit) floating-point elements. More...
 
Base-e exponent
static native void Exp_V64f_V64f (double[] xArray, int xOffset, double[] yArray, int yOffset, int length)
 Computes exponent on double precision (64-bit) floating-point elements. More...
 
Sine
static native void Sin_V64f_V64f (double[] xArray, int xOffset, double[] yArray, int yOffset, int length)
 Computes sine on double precision (64-bit) floating-point elements. More...
 
Cosine
static native void Cos_V64f_V64f (double[] xArray, int xOffset, double[] yArray, int yOffset, int length)
 Computes cosine on double precision (64-bit) floating-point elements. More...
 
Tangent
static native void Tan_V64f_V64f (double[] xArray, int xOffset, double[] yArray, int yOffset, int length)
 Computes tangent on double precision (64-bit) floating-point elements. More...
 
Polynomial evaluation
static native void EvaluatePolynomial_V32fV32f_V32f (float[] coefArray, int coefOffset, float[] xArray, int xOffset, float[] yArray, int yOffset, int coefCount, int length)
 Evaluates polynomial with single precision (32-bit) floating-point coefficients on an array of single precision (32-bit) floating-point elements. More...
 
static native void EvaluatePolynomial_V64fV64f_V64f (double[] coefArray, int coefOffset, double[] xArray, int xOffset, double[] yArray, int yOffset, int coefCount, int length)
 Evaluates polynomial with double precision (64-bit) floating-point coefficients on an array of double precision (64-bit) floating-point elements. More...
 

Detailed Description

Vector mathematical functions.

Member Function Documentation

static native void Log_V64f_V64f ( double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  length 
)
static

Computes natural logarithm on double precision (64-bit) floating-point elements.

Parameters
[in]xArrayInput array.
[in]xOffsetOffset of the first element in xArray.
[out]yArrayOutput array.
[in]yOffsetOffset of the first element in yArray.
[in]lengthThe length of the subarrays to be used in computation.
Exceptions
NullPointerExceptionIf xArray or yArray is null.
MisalignedPointerErrorIf xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf xOffset or yOffset is negative.
NegativeArraySizeExceptionIf length is negative.
IndexOutOfBoundsExceptionIf xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2, SSE4.1
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, AVX2, FMA3
x86-64AMD K10SSE, SSE2
x86-64AMD BulldozerAVX, FMA4, XOP
x86-64AMD BobcatSSE, SSE2
static native void Exp_V64f_V64f ( double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  length 
)
static

Computes exponent on double precision (64-bit) floating-point elements.

Parameters
[in]xArrayInput array.
[in]xOffsetOffset of the first element in xArray.
[out]yArrayOutput array.
[in]yOffsetOffset of the first element in yArray.
[in]lengthLength of the subarrays to be used in computation.
Exceptions
NullPointerExceptionIf xArray or yArray is null.
MisalignedPointerErrorIf xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf xOffset or yOffset is negative.
NegativeArraySizeExceptionIf length is negative.
IndexOutOfBoundsExceptionIf xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2, SSE4.1
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, AVX2, FMA3
x86-64AMD K10CMOV, SSE, SSE2
x86-64AMD BulldozerAVX, FMA4
x86-64AMD BobcatCMOV, SSE, SSE2
static native void Sin_V64f_V64f ( double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  length 
)
static

Computes sine on double precision (64-bit) floating-point elements.

Parameters
[in]xArrayInput array.
[in]xOffsetOffset of the first element in xArray.
[out]yArrayOutput array.
[in]yOffsetOffset of the first element in yArray.
[in]lengthThe length of the subarrays to be used in computation.
Exceptions
NullPointerExceptionIf xArray or yArray is null.
MisalignedPointerErrorIf xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf xOffset or yOffset is negative.
NegativeArraySizeExceptionIf length is negative.
IndexOutOfBoundsExceptionIf xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2, SSE4.1
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, AVX2, FMA3
x86-64AMD BulldozerAVX, FMA4
static native void Cos_V64f_V64f ( double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  length 
)
static

Computes cosine on double precision (64-bit) floating-point elements.

Parameters
[in]xArrayInput array.
[in]xOffsetOffset of the first element in xArray.
[out]yArrayOutput array.
[in]yOffsetOffset of the first element in yArray.
[in]lengthThe length of the subarrays to be used in computation.
Exceptions
NullPointerExceptionIf xArray or yArray is null.
MisalignedPointerErrorIf xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf xOffset or yOffset is negative.
NegativeArraySizeExceptionIf length is negative.
IndexOutOfBoundsExceptionIf xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE, SSE2, SSE4.1
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellAVX, AVX2, FMA3
x86-64AMD BulldozerAVX, FMA4
static native void Tan_V64f_V64f ( double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  length 
)
static

Computes tangent on double precision (64-bit) floating-point elements.

Parameters
[in]xArrayInput array.
[in]xOffsetOffset of the first element in xArray.
[out]yArrayOutput array.
[in]yOffsetOffset of the first element in yArray.
[in]lengthThe length of the slices of xArray and yArray to use in computation.
Exceptions
NullPointerExceptionIf xArray or yArray is null.
MisalignedPointerErrorIf xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf xOffset or yOffset is negative.
NegativeArraySizeExceptionIf length is negative.
IndexOutOfBoundsExceptionIf xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64AMD BulldozerAVX, FMA4
static native void EvaluatePolynomial_V32fV32f_V32f ( float[]  coefArray,
int  coefOffset,
float[]  xArray,
int  xOffset,
float[]  yArray,
int  yOffset,
int  coefCount,
int  length 
)
static

Evaluates polynomial with single precision (32-bit) floating-point coefficients on an array of single precision (32-bit) floating-point elements.

Parameters
[in]xArrayArray of elements on which the polynomial will be evaluated.
[in]xOffsetOffset of the first element in xArray.
[in]coefArrayArray of polynomial coefficients.
[in]coefOffsetOffset of the first element in yArray.
[out]yArrayArray where the result of polynomial evaluation will be stored.
[in]yOffsetOffset of the first element in yArray.
[in]coefCountThe length of the slice of coef to be used in computation.
[in]lengthThe length of the slice of xArray and yArray to use in computation.
Exceptions
NullPointerExceptionIf coefArray, xArray or yArray is null.
MisalignedPointerErrorIf coefArray, xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf coefOffset, xOffset or yOffset is negative or coefCount is zero.
NegativeArraySizeExceptionIf coefCount or length is negative.
IndexOutOfBoundsExceptionIf coefOffset + coefCount exceeds the length of coefArray, xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellSSE, AVX, FMA3
x86-64Intel BonnellSSE
x86-64AMD BulldozerAVX, FMA4
ARMARM Cortex-A9VFP2, NEON
static native void EvaluatePolynomial_V64fV64f_V64f ( double[]  coefArray,
int  coefOffset,
double[]  xArray,
int  xOffset,
double[]  yArray,
int  yOffset,
int  coefCount,
int  length 
)
static

Evaluates polynomial with double precision (64-bit) floating-point coefficients on an array of double precision (64-bit) floating-point elements.

Parameters
[in]xArrayArray of elements on which the polynomial will be evaluated.
[in]xOffsetOffset of the first element in xArray.
[in]coefArrayArray of polynomial coefficients.
[in]coefOffsetOffset of the first element in yArray.
[out]yArrayArray where the result of polynomial evaluation will be stored.
[in]yOffsetOffset of the first element in yArray.
[in]coefCountThe length of the slice of coef to be used in computation.
[in]lengthThe length of the slice of xArray and yArray to use in computation.
Exceptions
NullPointerExceptionIf coefArray, xArray or yArray is null.
MisalignedPointerErrorIf coefArray, xArray or yArray is not naturally aligned.
InvalidArgumentExceptionIf coefOffset, xOffset or yOffset is negative or coefCount is zero.
NegativeArraySizeExceptionIf coefCount or length is negative.
IndexOutOfBoundsExceptionIf coefOffset + coefCount exceeds the length of coefArray, xOffset + length exceeds the length of xArray or yOffset + length exceeds the length of yArray.
Optimized implementations
ArchitectureTarget microarchitectureRequired instruction extensions
x86-64Intel NehalemSSE2, SSE3
x86-64Intel Sandy BridgeAVX
x86-64Intel HaswellSSE, AVX, FMA3
x86-64Intel BonnellSSE, SSE2
x86-64AMD BulldozerAVX, FMA4
ARMARM Cortex-A9VFP2, VFPd32