- Type Parameters:
E
-
- All Implemented Interfaces:
java.util.function.BiFunction<Vector<E>,Vector<E>,E>
public class DotProduct<E>
extends Object
implements java.util.function.BiFunction<Vector<E>,Vector<E>,E>
Compute the dot product of two vectors over a ring.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
DotProduct
public DotProduct(Ring<E> ring)
-
Method Details
-
apply
- Specified by:
apply
in interface java.util.function.BiFunction<Vector<E>,Vector<E>,E>