12 references to PairManipulator
Microsoft.ML.Core (7)
Utilities\VBufferUtils.cs (7)
513/// Applies the <see cref="PairManipulator{TSrc,TDst}"/> to each pair of elements
524public static void ApplyWith<TSrc, TDst>(in VBuffer<TSrc> src, ref VBuffer<TDst> dst, PairManipulator<TSrc, TDst> manip)
530/// Applies the <see cref="PairManipulator{TSrc,TDst}"/> to each pair of elements
550/// Applies the <see cref="PairManipulator{TSrc,TDst}"/> to each pair of elements
560public static void ApplyWithEitherDefined<TSrc, TDst>(in VBuffer<TSrc> src, ref VBuffer<TDst> dst, PairManipulator<TSrc, TDst> manip)
566/// Applies the <see cref="PairManipulator{TSrc,TDst}"/> to each pair of elements
589private static void ApplyWithCore<TSrc, TDst>(in VBuffer<TSrc> src, ref VBuffer<TDst> dst, PairManipulator<TSrc, TDst> manip, bool outer)
Microsoft.ML.Core.Tests (5)
UnitTests\TestVBuffer.cs (5)
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;
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;
565VBufferUtils.PairManipulator<float, float> manip =