Compute the scalar product between two rows of two matrices
Declaring type: MatrixUtils
Namespace: MyMediaLite.DataType
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public static double RowScalarProduct (
        Matrix<double> matrix1,
        int i,
        Matrix<double> matrix2,
        int j
) 
Parameters
matrix1
the first matrix
i
the first row ID
matrix2
the second matrix
j
the second row ID
Return Value
the scalar product of row i of matrix1 and row j of matrix2