28 references to VBufferUtils
Microsoft.ML.Core (2)
Data\AnnotationUtils.cs (2)
305
VBufferUtils
.Resize(ref slotNames, vectorSize, 0);
393
VBufferUtils
.Densify(ref catIndices);
Microsoft.ML.Core.Tests (25)
UnitTests\TestVBuffer.cs (25)
37
VBufferUtils
.ApplyAt(ref buffer, 6, (int slot, ref float value) => { value = value + 1; });
58
VBufferUtils
.Apply(ref dst, (int i, ref float v) => v *= c);
321
/// A trivial inefficient implementation equivalent to <see cref="
VBufferUtils
.ApplyWith"/>.
323
private static void NaiveApplyWith<T1, T2>(ref VBuffer<T1> a, ref VBuffer<T2> b,
VBufferUtils
.PairManipulator<T1, T2> manip)
352
VBufferUtils
.PairManipulator<float, float> manip = (int ind, float av, ref float bv) => bv = 2 * bv + av - ind;
361
VBufferUtils
.ApplyWith(in a, ref b, manip);
368
/// A trivial inefficient implementation equivalent to <see cref="
VBufferUtils
.ApplyWithEitherDefined"/>.
370
private static void NaiveApplyWithEither<T1, T2>(ref VBuffer<T1> a, ref VBuffer<T2> b,
VBufferUtils
.PairManipulator<T1, T2> manip)
395
VBufferUtils
.PairManipulator<float, float> manip = (int ind, float av, ref float bv) => bv = 2 * bv + av - ind;
405
VBufferUtils
.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"/>.
446
VBufferUtils
.ForEachEitherDefined(in a, in b, vis);
448
VBufferUtils
.ForEachBothDefined(in a, in b, vis);
495
VBufferUtils
.ApplyIntoEitherDefined(in a, ref actualDst, func);
533
VBufferUtils
.ApplyInto(in a, in b, ref actualDst, func);
565
VBufferUtils
.PairManipulator<float, float> manip =
705
VBufferUtils
.SlotValueManipulator<float> manip = (int i, ref float value) => value += i;
714
VBufferUtils
.ApplyAt(ref a, slot, manip);
729
VBufferUtils
.SlotValueManipulator<float> manip = (int i, ref float value) => value += i;
755
VBufferUtils
.SlotValueManipulator<float> manip = (int i, ref float value) => value += i;
762
VBufferUtils
.Densify(ref b);
785
VBufferUtils
.SlotValueManipulator<float> manip = (int i, ref float value) => value += i;
793
VBufferUtils
.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,