// f06pa Example Program Text // C# version, NAG Copyright 2008 using System; using NagLibrary; using System.Globalization; namespace NagDotNetExamples { public class F06PAE { static void Main(String[] args) { StartExample(); } public static void StartExample() { try { double[,] a = { { 1, 2 }, { 3, 4 }}; double[,] b = { { 5,6 }, { 7,8 } }; double[] x = { 1, 1 }; double[] y = { 1,1 }; int m = 2; int n = 2; int incx = 1; int incy = 1; double alpha = 1.0; double beta = 1.0; int ifail; string trans = "N"; F06.f06pa(trans, m, n, alpha, a, x, incx, beta, y, incy, out ifail); for (int i=0; i< m; i++){ Console.WriteLine("y[{0}] = {1}", i, y[i]); } } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine("Exception Raised"); } } } }