Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Compiler error calling MathNet Numerics DelimitedWriter.WriteFile

$
0
0
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?

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>