I am new in mathnet and I want to know how I can set some part of matrix in C#.
For example I have ed is matrix and I want to run this convert this command from matlab to c#. How I can do this?
ed(10*ed<100)=50;
I am new in mathnet and I want to know how I can set some part of matrix in C#.
For example I have ed is matrix and I want to run this convert this command from matlab to c#. How I can do this?
ed(10*ed<100)=50;
You can try it like this:
ed.MapInplace(x => 10 * x < 100 ? 50 : x, Zeros.Include);
The documentation of Math.NET matrices can be found at: Matrices and Vectors