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

Compiler error calling MathNet Numerics DelimitedWriter.WriteFile

Jul 7, 2014 at 6:28 PM
I'm trying to write a DenseMatrix object to a csv file using DelimitedWriter like so:
DelimitedWriter.WriteFile(originalData, "written.csv", ",");
A red line would appear saying that the type arguments for the method cannot be inferred from the usage and to specify the type arguments explicitly. So I tried doing this:
DelimitedWriter.WriteFile<Double>(originalData, "written.csv", ",");
to which I got, "The best overloaded match... has some invalid arguments".

And this:
DelimitedWriter.WriteFile<Double>(originalData<Double>, "written.csv", ",");
to which I got originalData cannot be used with type arguments. I also tried casting originalData as a Matrix (rather than DenseMatrix) but that did not work either. I'm not sure what I'm missing here. Someone on Stack Overflow said that this may be due to an issue with the new version -- when he reverted to his old version, it worked fine. Any ideas?
Jul 20, 2014 at 4:41 PM
Marked as answer by cdrnet on 7/20/2014 at 9:41 AM