62 references to Length
Microsoft.ML.CpuMath.PerformanceTests (62)
AvxPerformanceTests.cs (18)
18=> AvxIntrinsics.AddScalarU(DefaultScale, new Span<float>(dst, 0, Length)); 22=> AvxIntrinsics.Scale(DefaultScale, new Span<float>(dst, 0, Length)); 26=> AvxIntrinsics.ScaleSrcU(DefaultScale, src, dst, Length); 30=> AvxIntrinsics.ScaleAddU(DefaultScale, DefaultScale, new Span<float>(dst, 0, Length)); 35=> AvxIntrinsics.AddScaleU(DefaultScale, src, dst, Length); 45=> AvxIntrinsics.AddScaleCopyU(DefaultScale, src, dst, result, Length); 49=> AvxIntrinsics.AddU(src, dst, Length); 57=> AvxIntrinsics.MulElementWiseU(src1, src2, dst, Length); 61=> AvxIntrinsics.Sum(new Span<float>(src, 0, Length)); 66=> AvxIntrinsics.SumSqU(new Span<float>(src, 0, Length)); 71=> AvxIntrinsics.SumSqDiffU(DefaultScale, new Span<float>(src, 0, Length)); 75=> AvxIntrinsics.SumAbsU(new Span<float>(src, 0, Length)); 79=> AvxIntrinsics.SumAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 83=> AvxIntrinsics.MaxAbsU(new Span<float>(src, 0, Length)); 87=> AvxIntrinsics.MaxAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 92=> AvxIntrinsics.DotU(src, dst, Length); 102=> AvxIntrinsics.Dist2(src, dst, Length); 107=> AvxIntrinsics.SdcaL1UpdateU(DefaultScale, Length, src, DefaultScale, dst, result);
NativePerformanceTests.cs (18)
29Thunk.AddScalarU(DefaultScale, pdst, Length); 38Thunk.Scale(DefaultScale, pdst, Length); 48Thunk.ScaleSrcU(DefaultScale, psrc, pdst, Length); 57Thunk.ScaleAddU(DefaultScale, DefaultScale, pdst, Length); 67Thunk.AddScaleU(DefaultScale, psrc, pdst, Length); 89Thunk.AddScaleCopyU(DefaultScale, psrc, pdst, pres, Length); 99Thunk.AddU(psrc, pdst, Length); 121Thunk.MulElementWiseU(psrc1, psrc2, pdst, Length); 130return Thunk.Sum(psrc, Length); 139return Thunk.SumSqU(psrc, Length); 148return Thunk.SumSqDiffU(DefaultScale, psrc, Length); 157return Thunk.SumAbsU(psrc, Length); 166return Thunk.SumAbsDiffU(DefaultScale, psrc, Length); 175return Thunk.MaxAbsU(psrc, Length); 184return Thunk.MaxAbsDiffU(DefaultScale, psrc, Length); 194return Thunk.DotU(psrc, pdst, Length); 215return Thunk.Dist2(psrc, pdst, Length); 226Thunk.SdcaL1UpdateU(DefaultScale, psrc, DefaultScale, pdst, pres, Length);
PerformanceTests.cs (8)
75src = new float[Length]; 76dst = new float[Length]; 77src1 = new float[Length]; 78src2 = new float[Length]; 79original = new float[Length]; 80result = new float[Length]; 87for (int i = 0; i < Length; i++) 99idx[i] = rand.Next(0, Length);
SsePerformanceTests.cs (18)
15=> SseIntrinsics.AddScalarU(DefaultScale, new Span<float>(dst, 0, Length)); 19=> SseIntrinsics.Scale(DefaultScale, new Span<float>(dst, 0, Length)); 23=> SseIntrinsics.ScaleSrcU(DefaultScale, src, dst, Length); 27=> SseIntrinsics.ScaleAddU(DefaultScale, DefaultScale, new Span<float>(dst, 0, Length)); 31=> SseIntrinsics.AddScaleU(DefaultScale, src, dst, Length); 39=> SseIntrinsics.AddScaleCopyU(DefaultScale, src, dst, result, Length); 43=> SseIntrinsics.AddU(src, dst, Length); 51=> SseIntrinsics.MulElementWiseU(src1, src2, dst, Length); 55=> SseIntrinsics.Sum(new Span<float>(src, 0, Length)); 59=> SseIntrinsics.SumSqU(new Span<float>(src, 0, Length)); 63=> SseIntrinsics.SumSqDiffU(DefaultScale, new Span<float>(src, 0, Length)); 67=> SseIntrinsics.SumAbsU(new Span<float>(src, 0, Length)); 71=> SseIntrinsics.SumAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 75=> SseIntrinsics.MaxAbsU(new Span<float>(src, 0, Length)); 79=> SseIntrinsics.MaxAbsDiffU(DefaultScale, new Span<float>(src, 0, Length)); 83=> SseIntrinsics.DotU(src, dst, Length); 91=> SseIntrinsics.Dist2(src, dst, Length); 95=> SseIntrinsics.SdcaL1UpdateU(DefaultScale, Length, src, DefaultScale, dst, result);