Class DenseRingVectorOps
java.lang.Object
org.flag4j.linalg.ops.dense.ring_ops.DenseRingVectorOps
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Ring<T>>
TinnerProduct
(T[] src1, T[] src2) Computes the vector inner product for two vectors.outerProduct
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors.outerProductConcurrent
(T[] src1, T[] src2) Computes the vector outer product between two real dense vectors using a concurrent implementation.
-
Method Details
-
innerProduct
Computes the vector inner product for two vectors.- Parameters:
src1
- Entries of the first vector.src2
- Entries of the second vector.- Returns:
- The inner product of the two vectors.
-
outerProduct
-
outerProductConcurrent
Computes the vector outer product between two real dense vectors using a concurrent implementation.- Parameters:
src1
- Entries of first vector.src2
- Entries of second vector.- Returns:
- The matrix resulting from the vector outer product.
-