I am trying to find our how I would compare two matrix's.
I have two matrix and I want to find out if they are equal, less or greater than.
I created a double loop to loop through and compare an individual element.
This compares the individual element but how would I compare the entire matrix and determine which one is greater or less?
I have two matrix and I want to find out if they are equal, less or greater than.
I created a double loop to loop through and compare an individual element.
Code:
for(int row = 0; row < Number; row++)
{
for (int col = 0; col < Number; col++)
{
if(a.matrix[row][col] == b.matrix[row][col];
}
}
Comment