public class VectorVectorMult_CDRM
extends java.lang.Object
Constructor and Description 

VectorVectorMult_CDRM() 
Modifier and Type  Method and Description 

static Complex_F32 
innerProd(CMatrixRMaj x,
CMatrixRMaj y,
Complex_F32 output)
Computes the inner product of the two vectors.

static Complex_F32 
innerProdH(CMatrixRMaj x,
CMatrixRMaj y,
Complex_F32 output)
Computes the inner product between a vector and the conjugate of another one.

static void 
outerProd(CMatrixRMaj x,
CMatrixRMaj y,
CMatrixRMaj A)
Sets A ∈ ℜ ^{m × n} equal to an outer product multiplication of the two
vectors.

static void 
outerProdH(CMatrixRMaj x,
CMatrixRMaj y,
CMatrixRMaj A)
Sets A ∈ ℜ ^{m × n} equal to an outer product multiplication of the two
vectors.

public static Complex_F32 innerProd(CMatrixRMaj x, CMatrixRMaj y, Complex_F32 output)
Computes the inner product of the two vectors. In geometry this is known as the dot product.
∑_{k=1:n} x_{k} * y_{k}
where x and y are vectors with n elements.
These functions are often used inside of highly optimized code and therefor sanity checks are kept to a minimum. It is not recommended that any of these functions be used directly.
x
 A vector with n elements. Not modified.y
 A vector with n elements. Not modified.public static Complex_F32 innerProdH(CMatrixRMaj x, CMatrixRMaj y, Complex_F32 output)
Computes the inner product between a vector and the conjugate of another one.
∑_{k=1:n} x_{k} * conj(y_{k})
where x and y are vectors with n elements.
These functions are often used inside of highly optimized code and therefor sanity checks are kept to a minimum. It is not recommended that any of these functions be used directly.
x
 A vector with n elements. Not modified.y
 A vector with n elements. Not modified.public static void outerProd(CMatrixRMaj x, CMatrixRMaj y, CMatrixRMaj A)
Sets A ∈ ℜ ^{m × n} equal to an outer product multiplication of the two
vectors. This is also known as a rank1 operation.
A = x * y^{T}
where x ∈ ℜ ^{m} and y ∈ ℜ ^{n} are vectors.
Which is equivalent to: A_{ij} = x_{i}*y_{j}
x
 A vector with m elements. Not modified.y
 A vector with n elements. Not modified.A
 A Matrix with m by n elements. Modified.public static void outerProdH(CMatrixRMaj x, CMatrixRMaj y, CMatrixRMaj A)
Sets A ∈ ℜ ^{m × n} equal to an outer product multiplication of the two
vectors. This is also known as a rank1 operation.
A = x * y^{H}
where x ∈ ℜ ^{m} and y ∈ ℜ ^{n} are vectors.
Which is equivalent to: A_{ij} = x_{i}*y_{j}
x
 A vector with m elements. Not modified.y
 A vector with n elements. Not modified.A
 A Matrix with m by n elements. Modified.
Copyright © 20092018 Peter Abeles