28 references to VBufferUtils
Microsoft.ML.Core (2)
Data\AnnotationUtils.cs (2)
305VBufferUtils.Resize(ref slotNames, vectorSize, 0); 393VBufferUtils.Densify(ref catIndices);
Microsoft.ML.Core.Tests (25)
UnitTests\TestVBuffer.cs (25)
37VBufferUtils.ApplyAt(ref buffer, 6, (int slot, ref float value) => { value = value + 1; }); 58VBufferUtils.Apply(ref dst, (int i, ref float v) => v *= c); 321/// A trivial inefficient implementation equivalent to <see cref="VBufferUtils.ApplyWith"/>. 323private static void NaiveApplyWith<T1, T2>(ref VBuffer<T1> a, ref VBuffer<T2> b, VBufferUtils.PairManipulator<T1, T2> manip) 352VBufferUtils.PairManipulator<float, float> manip = (int ind, float av, ref float bv) => bv = 2 * bv + av - ind; 361VBufferUtils.ApplyWith(in a, ref b, manip); 368/// A trivial inefficient implementation equivalent to <see cref="VBufferUtils.ApplyWithEitherDefined"/>. 370private static void NaiveApplyWithEither<T1, T2>(ref VBuffer<T1> a, ref VBuffer<T2> b, VBufferUtils.PairManipulator<T1, T2> manip) 395VBufferUtils.PairManipulator<float, float> manip = (int ind, float av, ref float bv) => bv = 2 * bv + av - ind; 405VBufferUtils.ApplyWithEitherDefined(in a, ref b, manip); 412/// A trivial inefficient implementation equivalent to <see cref="VBufferUtils.ForEachEitherDefined"/> 413/// if <paramref name="union"/> is true, or if false <see cref="VBufferUtils.ForEachBothDefined"/>. 446VBufferUtils.ForEachEitherDefined(in a, in b, vis); 448VBufferUtils.ForEachBothDefined(in a, in b, vis); 495VBufferUtils.ApplyIntoEitherDefined(in a, ref actualDst, func); 533VBufferUtils.ApplyInto(in a, in b, ref actualDst, func); 565VBufferUtils.PairManipulator<float, float> manip = 705VBufferUtils.SlotValueManipulator<float> manip = (int i, ref float value) => value += i; 714VBufferUtils.ApplyAt(ref a, slot, manip); 729VBufferUtils.SlotValueManipulator<float> manip = (int i, ref float value) => value += i; 755VBufferUtils.SlotValueManipulator<float> manip = (int i, ref float value) => value += i; 762VBufferUtils.Densify(ref b); 785VBufferUtils.SlotValueManipulator<float> manip = (int i, ref float value) => value += i; 793VBufferUtils.DensifyFirst(ref b, dense); 1077/// we see in <see cref="VectorUtils"/> and <see cref="VBufferUtils"/>, e.g., various
Microsoft.ML.Data (1)
Deprecated\Vector\VBufferMathUtils.cs (1)
376/// <see cref="VBufferUtils.ApplyInto{TSrc1,TSrc2,TDst}"/> except perhaps more efficiently,