Open ibasin opened 3 months ago
If in method: MathNet.Numerics.Providers.LinearAlgebra.ManagedLinearAlgebraProvider.SingularValueDecomposition(bool computeVectors, float[] a, int rowsA, int columnsA, float[] s, float[] u, float[] vt) you change double ztest; double test; to float ztest; float test; it will fix the problem!
The following code will fail:
var m = M.DenseOfArray(new[,] { { -2f, -2f, -1f }, { -2f, 2f, 1f }, { -1f, -1f, 2f },
}); var pinvM = m.PseudoInverse(); Console.WriteLine(pinvM);