Class InnerProduct


  • public class InnerProduct
    extends Object
    The Frobenius inner product is the component-wise inner product of two matrices as though they are vectors. In other words, it is the sum of the entries of the Hadamard product, that is,
    
     A : B = trace(A'B) = trace(AB');
     
    See Also:
    Wikipedia: Frobenius inner product
    • Constructor Detail

      • InnerProduct

        public InnerProduct​(Matrix A,
                            Matrix B)
        Compute the inner product of two matrices.
        Parameters:
        A - a matrix
        B - a matrix
    • Method Detail

      • value

        public double value()
        Get the value of the inner product.
        Returns:
        the value of the inner product