コード例 #1
0
ファイル: BlockVector.cs プロジェクト: 0xCM/arrows
        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);
        }
コード例 #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);
        }