Hi, i have a function which is supposed to compare two matrices, however i does not work properly. I get this compile warning.

`warning: control reaches end of non-void function`

Here is the function.

```
bool matrix::isequal(const matrix& ob3)
{
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < ob3.cols; j++)
{
for (int k = 0; k < ob3.rows; k++)
{
if (data[i][k] == ob3.data[k][j])
{
cout << "matricies are equal " << endl;
return true;
}
else
{
cout << "matricies are not equal " << endl;
return false;
}
}
}
}
}
```