Ask Your Question

Revision history [back]

Mat.forEach for 2 Matrices? Compare elements

Hey there,

i successful implemented Mat.forEach for efficient computing values of one Matrix. However for my next step i need to compare each value of 2 matrixes and compute the difference in percent. The most efficient way to iterate over each element of a Matrix is using forEach. Is there a possible way to compare each elements of 2 matrixes using forEach?