/// <summary> /// /// </summary> public static void Abs(ReadOnlyArrayView <Vector2d> matrix, ArrayView <Vector2d> result) { for (int i = 0; i < matrix.Count; i++) { result[i] = Vector2d.Abs(matrix[i]); } }
/// <summary> /// /// </summary> public static void Abs(ReadOnlyArrayView <Vector2d> matrix, ArrayView <Vector2d> result) { ForEach(new UniformPartitioner(0, matrix.Count), p => { for (int i = p.From; i < p.To; i++) { result[i] = Vector2d.Abs(matrix[i]); } }); }