public SolverResult Solve <Tunknowns, Trhs>(Tunknowns x, Trhs rhs) where Tunknowns : IList <double> where Trhs : IList <double> { var StartTime = DateTime.Now; Mtx.SolveMATLAB(x, rhs); return(new SolverResult() { Converged = true, NoOfIterations = 1, RunTime = DateTime.Now - StartTime }); }