protected static double sum(double[] vector) { return Matrix.Sum(vector); } /// <summary>Product of vector elements.</summary>