Пример #1
0
 /// <summary>
 ///
 /// </summary>
 public static void Min(ReadOnlyArrayView <Vector3d> m0, ReadOnlyArrayView <Vector3d> m1, ArrayView <Vector3d> result)
 {
     for (int i = 0; i < m0.Count; i++)
     {
         result[i] = Vector3d.Min(m0[i], m1[i]);
     }
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public static void Min(ReadOnlyArrayView <Vector3d> m0, ReadOnlyArrayView <Vector3d> m1, ArrayView <Vector3d> result)
 {
     ForEach(new UniformPartitioner(0, m0.Count), p =>
     {
         for (int i = p.From; i < p.To; i++)
         {
             result[i] = Vector3d.Min(m0[i], m1[i]);
         }
     });
 }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        public static Vector3d ColumnMin(ReadOnlyArrayView <Vector3d> matrix)
        {
            var result = matrix[0];

            for (int i = 1; i < matrix.Count; i++)
            {
                result = Vector3d.Min(matrix[i], result);
            }

            return(result);
        }