Class DenseFieldVectorOps
java.lang.Object
org.flag4j.linalg.ops.dense.field_ops.DenseFieldVectorOps
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Field<T>>
TdotProduct
(T[] src1, T[] src2) Computes the vector dot product for two vectors.static <T extends Field<T>>
TinnerProduct
(T[] src1, T[] src2) Computes the vector inner product for two vectors.static double
innerSelfProduct
(Complex128[] src1) Computes the inner product (dot product) of a vector with itself.static <T extends Field<T>>
voidouterProduct
(T[] src1, T[] src2, T[] dest) Computes the vector outer product between two real dense vectors.static <T extends Field<T>>
voidouterProductConcurrent
(T[] src1, T[] src2, T[] dest) 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.
-
innerSelfProduct
Computes the inner product (dot product) of a vector with itself.- Parameters:
vector
- The input complex vector.- Returns:
- The inner product of the vector with itself as a double.
-
dotProduct
Computes the vector dot product for two vectors.- Parameters:
src1
- Entries of the first vector.src2
- Entries of the second vector.- Returns:
- The dot product of the two vectors.
-
outerProduct
Computes the vector outer product between two real dense vectors.- Parameters:
src1
- Entries of first vector.src2
- Entries of second vector.dest
- Array to store the result of the vector outer product (modified).
-
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.dest
- Array to store the result of the vector outer product in (modified). Must have lengthsrc1.length*src2.length
.
-