public IVector <T> Multyply(IVector <T> vector) { NMatrix result = new NMatrix(this.GetData()); result.Multiply(vector); return(new CartesianVector <T>(result)); }
public void Test1() { IMatrix <double> mat = new NMatrix(new double[, ] { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }); //IMatrix<double> mat2 = mat.Multiply(IdentityMatrix.CreateNew(3)); IMatrix <double> mat2 = mat.Multiply(mat); IMatrix <double> mat3 = mat2.Add(10); System.Console.WriteLine(mat); System.Console.WriteLine(); System.Console.WriteLine(mat2); System.Console.WriteLine(); System.Console.WriteLine(mat3); }