// f06qf1 Example Program Text // C# version, NAG Copyright 2008 using System; using NagLibrary; using System.Globalization; namespace NagDotNetExamples { public class F06QFE { static void Main(String[] args) { StartExample(); } public static void StartExample() { try { double[,] a = { { 1, 2 , 3}, { 4, 5, 6 }, {7, 8, 9}}; double[,] b = { { 0, 0 , 0}, { 0, 0, 0 }, { 0, 0, 0}}; int m =3; int n = 3; int ifail; string matrix = "G"; F06.f06qf(matrix, m, n, a, b, out ifail); for (int i=0; i< m; i++){ for (int j=0; j< n; j++){ Console.WriteLine("b[{0},{1}] = {2}",i, j, b[i,j]); } } } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine("Exception Raised"); } } } }