grapes-hp-grapes function

Computation of the vector of Hadamard product values of the matrices X[,,i] and B.