mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 17:39:16 +08:00
Definition of unequal for template <class T> class matrix4 error.
even one element difference can lead to the difference of matrix
This commit is contained in:
parent
bf8c6dd043
commit
9d79933730
|
@ -512,14 +512,14 @@ namespace nv
|
|||
|
||||
friend bool operator != (const matrix4 &lhs, const matrix4 &rhs)
|
||||
{
|
||||
bool r = true;
|
||||
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
r &= lhs._array[i] != rhs._array[i];
|
||||
if (lhs._array[i] != rhs._array[i])
|
||||
return true;
|
||||
}
|
||||
|
||||
return r;
|
||||
return false;
|
||||
}
|
||||
|
||||
union
|
||||
|
|
Loading…
Reference in New Issue
Block a user