Class RealFieldDenseVectorOps
java.lang.Object
org.flag4j.linalg.ops.dense.real_field_ops.RealFieldDenseVectorOps
This class provides low level implementations for vector ops with one dense real vector and one dense field vector.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Field<T>>
voidadd
(double[] src, T a, T[] dest) Adds a scalar value to all data of a tensor.static <T extends Field<T>>
Tinner
(double[] src1, T[] src2) Computes the vector inner product for a real dense vector and a complex dense vector.static <T extends Field<T>>
Tinner
(T[] src1, double[] src2) Computes the vector inner product for a complex dense vector and a real dense vector.static <T extends Field<T>>
voidouterProduct
(double[] src1, T[] src2, T[] dest) Computes the vector outer product between two real dense vectors.static <T extends Field<T>>
voidouterProduct
(T[] src1, double[] src2, T[] dest) Computes the vector outer product between two real dense vectors.
-
Method Details
-
inner
Computes the vector inner product for a real dense vector and a complex dense vector.- Parameters:
src1
- Entries of the first vector.src2
- Entries of the second vector.- Returns:
- The inner product of the two vectors.
-
inner
Computes the vector inner product for a complex dense vector and a real dense vector.- Parameters:
src1
- Entries of the first vector.src2
- Entries of the second vector.- Returns:
- The inner 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 in. Must have lengthsrc1.length*src2.length
.
-
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 in. Must have lengthsrc1.length*src2.length
.
-
add
Adds a scalar value to all data of a tensor.- Parameters:
src
- Entries of first tensor.a
- Scalar to add to all data of this tensor.dest
- Array to store the result of the vector-scalar addition. Must have length equal tosrc.length
.
-