xxxxxxxxxx
public double GetMax(List<List<double>> List2D)
{
// get max value of each row and add it to a new list
List<double> maxVals= new List<double>();
foreach (List<double> row in List2D)
maxVals.Add(rows.Max());
// find the max value in the list of the max values of each row
double max = maxVals.Max();
return max;
}