20 references to GetBits
Microsoft.ML.Core.Tests (8)
UnitTests\CoreBaseTestClass.cs (4)
111
return GetComparerVec<Single>(r1, r2, col, size, (x, y) => FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y));
154
return GetComparerOne<Single>(r1, r2, col, (x, y) => FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y));
UnitTests\TestVBuffer.cs (4)
1047
return (i, j) => FloatUtils.
GetBits
(i) == FloatUtils.
GetBits
(j);
1050
if (FloatUtils.
GetBits
(i) == FloatUtils.
GetBits
(j) || Math.Abs(i - j) == 0)
Microsoft.ML.Data (3)
Transforms\Hashing.cs (3)
545
=> float.IsNaN(value) ? 0 : (Hashing.MixHash(Hashing.MurmurRound(seed, FloatUtils.
GetBits
(value == 0 ? 0 : value))) & mask) + 1;
549
=> float.IsNaN(value) ? 0 : (Hashing.MixHash(Hashing.MurmurRound(seed, FloatUtils.
GetBits
(value == 0 ? 0 : value)), sizeof(float)) & mask) + 1;
559
hash = Hashing.MurmurRound(hash, FloatUtils.
GetBits
(value == 0 ? 0 : value));
Microsoft.ML.TestFramework (8)
DataPipe\TestDataPipe.cs (2)
228
Func<float, float, bool> fn = (x, y) => FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y);
DataPipe\TestDataPipeBase.cs (6)
905
return GetComparerOne<float>(r1, r2, col, (x, y) => FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y));
956
return GetComparerVec<float>(r1, r2, col, size, (x, y) => FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y));
997
return FloatUtils.
GetBits
(x) == FloatUtils.
GetBits
(y) || Math.Abs(x - y) < SingleEps;
Microsoft.ML.Transforms (1)
HashJoiningTransform.cs (1)
644
private uint Hash(in float value, uint seed) => Hashing.MurmurRound(seed, FloatUtils.
GetBits
(value));