Clarify elementwise cmp reduces
Saying "elementwise (non-)equal" may suggest it returns a vector. The comments should be clear that it instead reduces to a scalar. Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
This commit is contained in:
parent
71d4c36850
commit
92259a4a6c
@ -709,7 +709,7 @@ where
|
||||
Mask::from_int_unchecked(tfvec)
|
||||
};
|
||||
|
||||
// Two vectors are equal if they are elementwise equal
|
||||
// Two vectors are equal if all elements are equal when compared elementwise
|
||||
mask.all()
|
||||
}
|
||||
|
||||
@ -722,7 +722,7 @@ where
|
||||
Mask::from_int_unchecked(tfvec)
|
||||
};
|
||||
|
||||
// Two vectors are non-equal if they are elementwise non-equal
|
||||
// Two vectors are non-equal if any elements are non-equal when compared elementwise
|
||||
mask.any()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user