Exemplo n.º 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);
Exemplo n.º 2
0
Arquivo: Spans.cs Projeto: 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);
Exemplo n.º 3
0
Arquivo: Spans.cs Projeto: 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);
Exemplo n.º 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);
Exemplo n.º 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();
Exemplo n.º 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();