Note
            In the Novacta.Analytics assembly, positions of matrix entries are 
            interpreted as linearly ordered following a column major ordering.
            

public static IndexValuePair Max(
	DoubleMatrix data
)Public Shared Function Max ( 
	data As DoubleMatrix
) As IndexValuePairpublic:
static IndexValuePair Max(
	DoubleMatrix^ data
)static member Max : 
        data : DoubleMatrix -> IndexValuePair In the following example, the largest entry of the specified data is computed.
using System;
namespace Novacta.Analytics.CodeExamples
{
    public class MaxExample1  
    {
        public void Main()
        {
            // Create a matrix.
            var data = new double[6] {
               -1, -2,
                2,  3,
                3, -4
            };
            var matrix = DoubleMatrix.Dense(3, 2, data, StorageOrder.RowMajor);
            Console.WriteLine("The data matrix:");
            Console.WriteLine(matrix);
            // Return the largest entry of the specified data. 
            var dataMax = Stat.Max(matrix);
            Console.WriteLine();
            Console.WriteLine("Data maximum is {0} on linear position {1}",
                dataMax.Value, dataMax.Index);
            // Max is overloaded to accept data as a read-only matrix:
            // return the largest entry using a read-only wrapper of 
            // the data matrix.
            ReadOnlyDoubleMatrix readOnlyMatrix = matrix.AsReadOnly();
            var readOnlyDataMax = Stat.Max(readOnlyMatrix);
            Console.WriteLine();
            Console.WriteLine("Using read-only data. Maximum is {0} on linear position {1}",
                readOnlyDataMax.Value, readOnlyDataMax.Index);
        }
    }
}
// Executing method Main() produces the following output:
// 
// The data matrix:
// -1               -2               
// 2                3                
// 3                -4               
// 
// 
// 
// Data maximum is 3 on linear position 2
// 
// Using read-only data. Maximum is 3 on linear position 2| ArgumentNullException | data is null. |