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

New Post: ReadMatrix(stream)

$
0
0
I'm trying to use ReadMatrix(stream) and keep getting a null object reference:
        string strData = "3 4 5 6";
        byte[] data = Encoding.ASCII.GetBytes(strData);
        Stream dataStream = new MemoryStream(data, 0, data.Length);
        Matrix<Double> P = mat.ReadMatrix(dataStream);
Can someone suggest how to convert a string to matrix with the ReadMatrix method? Also, how does the method know to make the string above a 1x4 matrix or 2x2?

Viewing all articles
Browse latest Browse all 971

Trending Articles



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