Example #1
0
 public static m128i <T> CpuInt128 <T>(this IPolyrand random, Interval <T>?domain = null, Func <T, bool> filter = null)
     where T : unmanaged
 => m128i.From(random.Span128 <T>(1, domain, filter).Unblocked);
Example #2
0
File: Spans.cs Project: 0xCM/arrows
 public static Span128 <T> NonZeroSpan128 <T>(this IPolyrand random, int blocks = 1, Interval <T>?domain = null)
     where T : struct
 => random.Span128(blocks, domain, gmath.nonzero);
Example #3
0
File: Spans.cs Project: 0xCM/arrows
 public static ReadOnlySpan128 <T> ReadOnlySpan128 <T>(this IPolyrand random, int blocks = 1, Interval <T>?domain = null, Func <T, bool> filter = null)
     where T : struct
 => random.Span128 <T>(blocks, domain, filter);
Example #4
0
 public static XMM Xmm <T>(this IPolyrand random, Interval <T> domain, Func <T, bool> filter = null)
     where T : unmanaged
 => XMM.From(random.Span128 <T>(1, domain, filter).Unblocked);
Example #5
0
 public static Vec128 <T> CpuVec128 <T>(this IPolyrand random, T min, T max, Func <T, bool> filter = null)
     where T : unmanaged
 => random.Span128 <T>(1, closed(min, max), filter).LoadVec128();
Example #6
0
 public static Vec128 <T> CpuVec128 <T>(this IPolyrand random, Interval <T> domain, Func <T, bool> filter = null)
     where T : unmanaged
 => random.Span128 <T>(1, domain, filter).LoadVec128();