Exemplo n.º 1
0
        public static BlockVector <N, T> BlockVec <N, T>(this IPolyrand random, N n = default)
            where T : struct
            where N : ITypeNat, new()
        {
            var dst = BlockVector.Alloc <N, T>();

            random.Fill(ref dst);
            return(dst);
        }
Exemplo n.º 2
0
        public static Vector <N, T> Vector <N, T>(this IPolyrand random, N n = default)
            where T : unmanaged
            where N : ITypeNat, new()
        {
            var dst = Z0.Vector.Alloc <N, T>();

            random.Fill(ref dst);
            return(dst);
        }