using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter02.Section4 { public class Example02 { public Example02() { } private string result; public string Result { get { return result; } } public void Compute() { double[,] x = {{0.0}, {1.0}, {2.0}}; L.Matrix A = new L.Matrix(x); double[,] y = {{1.0}, {2.0}, {3.0}}; L.Matrix B = new L.Matrix(y); L.Matrix AB = A * B.Transpose; result += AB.ToString() + "\r\n"; } } } /* 0 0 0 1 2 3 2 4 6 */