Class DOT
java.lang.Object
org.ojalgo.array.operation.DOT
- All Implemented Interfaces:
ArrayOperation
The ?dot routines perform a vector-vector reduction operation defined as Equation where xi and yi are
elements of vectors x and y.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleinvoke(double[] array1, double[] array2) static doubleinvoke(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) static doublestatic floatinvoke(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) static floatstatic BigDecimalinvoke(BigDecimal[] array1, int offset1, BigDecimal[] array2, int offset2, int first, int limit) static <N extends Scalar<N>>
Ninvoke(N[] array1, int offset1, N[] array2, int offset2, int first, int limit, Scalar.Factory<N> factory) static <N extends Scalar<N>>
Ninvoke(N[] array1, int offset1, Access1D<N> array2, int offset2, int first, int limit, Scalar.Factory<N> factory) static ComplexNumberinvoke(ComplexNumber[] array1, int offset1, ComplexNumber[] array2, int offset2, int first, int limit) static doublestatic floatstatic <N extends Scalar<N>>
Ninvoke(Access1D<N> array2, int offset2, N[] array1, int offset1, int first, int limit, Scalar.Factory<N> factory) static <N extends Scalar<N>>
NinvokeG(Access1D<N> array1, int offset1, Access1D<N> array2, int offset2, int first, int limit, Scalar.Factory<N> scalar) static double(package private) static doubleplain(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) (package private) static floatplain(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) (package private) static floatunrolled02(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) (package private) static doubleunrolled04(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) (package private) static floatunrolled04(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) (package private) static floatunrolled08(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) (package private) static floatunrolled16(float[] array1, int offset1, float[] array2, int offset2, int first, int limit)
-
Field Details
-
THRESHOLD
public static int THRESHOLD
-
-
Constructor Details
-
DOT
public DOT()
-
-
Method Details
-
invoke
public static double invoke(Access1D<?> array1, int offset1, double[] array2, int offset2, int first, int limit) -
invoke
public static float invoke(Access1D<?> array1, int offset1, float[] array2, int offset2, int first, int limit) -
invoke
public static <N extends Scalar<N>> N invoke(Access1D<N> array2, int offset2, N[] array1, int offset1, int first, int limit, Scalar.Factory<N> factory) -
invoke
public static BigDecimal invoke(BigDecimal[] array1, int offset1, BigDecimal[] array2, int offset2, int first, int limit) -
invoke
public static ComplexNumber invoke(ComplexNumber[] array1, int offset1, ComplexNumber[] array2, int offset2, int first, int limit) -
invoke
public static double invoke(double[] array1, double[] array2) -
invoke
public static double invoke(double[] array1, int offset1, Access1D<?> array2, int offset2, int first, int limit) -
invoke
public static double invoke(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) -
invoke
public static float invoke(float[] array1, int offset1, Access1D<?> array2, int offset2, int first, int limit) -
invoke
public static float invoke(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) -
invoke
public static <N extends Scalar<N>> N invoke(N[] array1, int offset1, Access1D<N> array2, int offset2, int first, int limit, Scalar.Factory<N> factory) -
invoke
public static <N extends Scalar<N>> N invoke(N[] array1, int offset1, N[] array2, int offset2, int first, int limit, Scalar.Factory<N> factory) -
invokeG
public static <N extends Scalar<N>> N invokeG(Access1D<N> array1, int offset1, Access1D<N> array2, int offset2, int first, int limit, Scalar.Factory<N> scalar) -
invokeP64
-
plain
static double plain(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) -
plain
static float plain(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) -
unrolled02
static float unrolled02(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) -
unrolled04
static double unrolled04(double[] array1, int offset1, double[] array2, int offset2, int first, int limit) -
unrolled04
static float unrolled04(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) -
unrolled08
static float unrolled08(float[] array1, int offset1, float[] array2, int offset2, int first, int limit) -
unrolled16
static float unrolled16(float[] array1, int offset1, float[] array2, int offset2, int first, int limit)
-