Return value in solve can be Matrix