This project has moved. For the latest updates, please go here.

Simple A*u Matrix-Vector Multiplication

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

 

Greetings,

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
 

for

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

Matrix B = A*C + I;

u = B * u; 

}

Any quick fixes?

Regards,

David_R

 

Coordinator
Mar 31, 2011 at 10:04 PM

Hi David

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

Thanks,
Chris

Mar 31, 2011 at 11:04 PM

Hi Chris

I am using Math.NET numerics

Thanks,

David 

Mar 31, 2011 at 11:16 PM
Edited Apr 1, 2011 at 6:49 AM

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