This project has moved and is read-only. For the latest updates, please go here.

Simple A*u Matrix-Vector Multiplication

Mar 31, 2011 at 10:38 PM
Edited Mar 31, 2011 at 10:39 PM



I am new to Mathnet and I am implimenting a simple explicit euler method.

For some reason I cannot perform a Matrix-Vector Multiplication here (in red) without

the following error:

Error 1 Operator '*' cannot be applied to operands of type 'MathNet.Numerics.LinearAlgebra.Matrix' and 'MathNet.Numerics.LinearAlgebra.Vector' C:\Users\David Ryan Eng Tool\Documents\Visual Studio 2008\Projects\1-D Heat Eq\1-D Heat Eq\Program.cs 81 21 1-D Heat Eq


(int i = 0; i < N; i++) {

Matrix B = A*C + I;

u = B * u; 


Any quick fixes?




Mar 31, 2011 at 11:04 PM

Hi David

Just to clarify, are you using Math.NET Iridium or Math.NET Numerics?


Apr 1, 2011 at 12:04 AM

Hi Chris

I am using Math.NET numerics



Apr 1, 2011 at 12:16 AM
Edited Apr 1, 2011 at 7:49 AM

Problem Solved. I just converted from vector to matrix type. Code works fine. Thank you.