R/frobenius.prod.R

Defines functions frobenius.prod

Documented in frobenius.prod

frobenius.prod <- function( x, y )
{
###
### this function calculates the Frobenius inner product product of two matrices x and y.
### the matrices must the same row and column order
###
### Parameters
### x = a numeric matrix or vector object
### y = a numeric matrix or vector object
###
    return( sum( hadamard.prod(x, y) ) )
}

Try the matrixcalc package in your browser

Any scripts or data that you put into this service are public.

matrixcalc documentation built on Sept. 15, 2022, 1:05 a.m.