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

1x1 Sparse by 1x1 Diagonal matrix -> Exception

$
0
0

@MicroTester wrote:

I am getting exception when I try to run the folloeing code:

var aSparse = Matrix<double>.Build.Sparse(1, 1, -1.0);
var bDiagonal = Matrix<double>.Build.Diagonal(1, 1, 0.3);
var mTest = aSparse * bDiagonal; // The exception occurs in this line

An unhandled exception of type 'System.IndexOutOfRangeException' occurred in MathNet.Numerics.dll

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles