I've declared a MathNet Matrix and Vector type as follows ...
Matrix<double> X = Matrix<double>.Build.Dense(sampleSize,2);
Vector<double> yObserved = Vector<double>.Build.Dense(sampleSize);
but when I call ...
Vector<double> p = MultipleRegression.NormalEquations(X, yObserved, true);
Visual Studio gives the error
Error CS0411 The type arguments for method 'MultipleRegression.NormalEquations(T[][], T[], bool)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
So how am I suppose to call the MultipleRegression class with Matrix and Vector arguments if not like this? And why does Visual Studio find my type coding ambiguous?
I got my code to work fine with a jagged array for the matrix; now I want to get it running with the Matrix/Vector types instead.